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

This commit is contained in:
Hajime Hoshi 2023-10-08 04:30:08 +09:00
parent e352181ec1
commit 53525342b1

View File

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