mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/graphicsdriver/directx: handle error at Signal
This commit is contained in:
parent
0c38d6faeb
commit
e78d888b24
@ -781,7 +781,9 @@ func (g *Graphics) waitForCommandQueue() error {
|
||||
defer f.Release()
|
||||
|
||||
const expected uint64 = 1
|
||||
g.commandQueue.Signal(f, expected)
|
||||
if err := g.commandQueue.Signal(f, expected); err != nil {
|
||||
return err
|
||||
}
|
||||
if f.GetCompletedValue() < expected {
|
||||
if err := f.SetEventOnCompletion(expected, g.fenceWaitEvent); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user