From 0c38d6faebf474c25cf9605d117bf64f4d6fe0ae Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 18 Jun 2022 01:18:47 +0900 Subject: [PATCH] internal/graphicsdriver/directx: add comment about frames Updates #2034 --- internal/graphicsdriver/directx/graphics_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index efb8ae403..cd01b0ff5 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -674,6 +674,7 @@ func (g *Graphics) End(present bool) error { return err } + // TODO: nextIndex should be GetCurrentBackBufferIndex on desktops, right? (#2034) nextIndex := (g.frameIndex + 1) % frameCount if err := g.waitForCommandQueueForFrame(nextIndex); err != nil { return err