mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +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 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