internal/graphicscommand: bug fix: test failures on Linux

This commit is contained in:
Hajime Hoshi 2022-11-04 03:55:05 +09:00
parent 005e87a917
commit 1839dd0b9b

View File

@ -156,7 +156,9 @@ func (q *commandQueue) Flush(graphicsDriver graphicsdriver.Graphics, endFrame bo
runOnRenderingThread(func() { runOnRenderingThread(func() {
err = q.flush(graphicsDriver, endFrame) err = q.flush(graphicsDriver, endFrame)
}) })
q.float32sBuffer = q.float32sBuffer[:0] if endFrame {
q.float32sBuffer = q.float32sBuffer[:0]
}
return return
} }