mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
internal/graphicsdriver/directx: bug fix: a wrong fence value was passed to SetEventOnCompletion
This commit is contained in:
parent
a22125a075
commit
4c121ae5eb
@ -836,7 +836,7 @@ func (g *Graphics) moveToNextFrame() error {
|
||||
}
|
||||
|
||||
if g.fence.GetCompletedValue() < g.fenceValues[g.frameIndex] {
|
||||
if err := g.fence.SetEventOnCompletion(fv, g.fenceWaitEvent); err != nil {
|
||||
if err := g.fence.SetEventOnCompletion(g.fenceValues[g.frameIndex], g.fenceWaitEvent); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := windows.WaitForSingleObject(g.fenceWaitEvent, windows.INFINITE); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user