diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index cd01b0ff5..2a8db785e 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -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