From 1db0abc4ee5bda7e9d03d7f4c8b37421b667d128 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 Oct 2023 00:19:36 +0900 Subject: [PATCH] internal/graphicsdriver/directx: add comments --- internal/graphicsdriver/directx/graphics_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index a6d56571b..20347ed79 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -274,6 +274,9 @@ func (g *graphicsInfra) initSwapChain(width, height int, device unsafe.Pointer, // https://learn.microsoft.com/en-us/windows/win32/api/dxgi/ne-dxgi-dxgi_swap_effect if !winver.IsWindows10OrGreater() { desc.SwapEffect = _DXGI_SWAP_EFFECT_SEQUENTIAL + // With the non-flip (bitblt) mode, the buffer count should be 1. See also: + // * https://bugzilla.mozilla.org/show_bug.cgi?id=1419293#c18 + // * https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/dxgi-flip-model desc.BufferCount = 1 }