mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicscommand: bug fix: Flush didn't return error when sync=false
This commit is contained in:
parent
e352181ec1
commit
53525342b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user