From c0adcee12cb57b901f7c1859bb16ccb9f107ed83 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 30 Mar 2023 22:40:34 +0900 Subject: [PATCH] Revert "internal/graphicsdriver/directx: initialize the refresh rate explicitly for Windows 7" This reverts commit a4bfe8a869406b4e1065f56db685aa1d0b030b76. Reason: This doesn't take any effects. Updates #2613 --- internal/graphicsdriver/directx/graphics_windows.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index 80a27ca6d..eb86e1dc8 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -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)