internal/graphicsdriver/directx: add comment about frames

Updates #2034
This commit is contained in:
Hajime Hoshi 2022-06-18 01:18:47 +09:00
parent a16ffef499
commit 0c38d6faeb

View File

@ -674,6 +674,7 @@ func (g *Graphics) End(present bool) error {
return err return err
} }
// TODO: nextIndex should be GetCurrentBackBufferIndex on desktops, right? (#2034)
nextIndex := (g.frameIndex + 1) % frameCount nextIndex := (g.frameIndex + 1) % frameCount
if err := g.waitForCommandQueueForFrame(nextIndex); err != nil { if err := g.waitForCommandQueueForFrame(nextIndex); err != nil {
return err return err