mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/graphicsdriver/directx: add comment about frames
Updates #2034
This commit is contained in:
parent
a16ffef499
commit
0c38d6faeb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user