mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02:00
internal/graphicscommand: bug fix: Flush didn't return error when sync=false
Updates #2840
This commit is contained in:
parent
c8c8b2b17a
commit
a7123fed90
@ -205,6 +205,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