internal/graphicscommand: bug fix: Flush didn't return error when sync=false

Updates #2840
This commit is contained in:
Hajime Hoshi 2023-10-08 04:30:08 +09:00
parent c8c8b2b17a
commit a7123fed90

View File

@ -205,6 +205,7 @@ func (q *commandQueue) Flush(graphicsDriver graphicsdriver.Graphics, endFrame bo
if err := q.flush(graphicsDriver, endFrame, logger); err != nil { if err := q.flush(graphicsDriver, endFrame, logger); err != nil {
if sync { if sync {
flushErr = err
return return
} }
q.err.Store(err) q.err.Store(err)