mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
Revert "internal/graphicsdriver/directx: initialize the refresh rate explicitly for Windows 7"
This reverts commit a4bfe8a869
.
Reason: This doesn't take any effects.
Updates #2613
This commit is contained in:
parent
a4bfe8a869
commit
c0adcee12c
@ -278,8 +278,6 @@ func (g *graphicsInfra) initSwapChain(width, height int, device unsafe.Pointer,
|
|||||||
if !isWindows10OrGreaterWin32() {
|
if !isWindows10OrGreaterWin32() {
|
||||||
desc.SwapEffect = _DXGI_SWAP_EFFECT_SEQUENTIAL
|
desc.SwapEffect = _DXGI_SWAP_EFFECT_SEQUENTIAL
|
||||||
desc.BufferCount = 1
|
desc.BufferCount = 1
|
||||||
desc.BufferDesc.RefreshRate.Numerator = 0
|
|
||||||
desc.BufferDesc.RefreshRate.Denominator = 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g.bufferCount = int(desc.BufferCount)
|
g.bufferCount = int(desc.BufferCount)
|
||||||
|
Loading…
Reference in New Issue
Block a user