From 1839dd0b9b1e8be81cafd1b03d884252df55e461 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 4 Nov 2022 03:55:05 +0900 Subject: [PATCH] internal/graphicscommand: bug fix: test failures on Linux --- internal/graphicscommand/command.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }