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:
Hajime Hoshi 2023-03-30 22:40:34 +09:00
parent a4bfe8a869
commit c0adcee12c

View File

@ -278,8 +278,6 @@ func (g *graphicsInfra) initSwapChain(width, height int, device unsafe.Pointer,
if !isWindows10OrGreaterWin32() {
desc.SwapEffect = _DXGI_SWAP_EFFECT_SEQUENTIAL
desc.BufferCount = 1
desc.BufferDesc.RefreshRate.Numerator = 0
desc.BufferDesc.RefreshRate.Denominator = 1
}
g.bufferCount = int(desc.BufferCount)