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
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 err := q.flush(graphicsDriver, endFrame, logger); err != nil {
|
||||||
if sync {
|
if sync {
|
||||||
|
flushErr = err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
q.err.Store(err)
|
q.err.Store(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user