mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +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()
|
defer f.Release()
|
||||||
|
|
||||||
const expected uint64 = 1
|
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 f.GetCompletedValue() < expected {
|
||||||
if err := f.SetEventOnCompletion(expected, g.fenceWaitEvent); err != nil {
|
if err := f.SetEventOnCompletion(expected, g.fenceWaitEvent); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user