diff --git a/internal/graphicscommand/command.go b/internal/graphicscommand/command.go index 4dbcf534a..0dd9402af 100644 --- a/internal/graphicscommand/command.go +++ b/internal/graphicscommand/command.go @@ -156,7 +156,9 @@ func (q *commandQueue) Flush(graphicsDriver graphicsdriver.Graphics, endFrame bo runOnRenderingThread(func() { err = q.flush(graphicsDriver, endFrame) }) - q.float32sBuffer = q.float32sBuffer[:0] + if endFrame { + q.float32sBuffer = q.float32sBuffer[:0] + } return }