From 501c41e10fe67b5b6d7c0d4c6cacfd7b2c00be3d Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 6 Jan 2024 15:44:39 -0400 Subject: [PATCH] Fix compiler warning --- src/modules/graphics/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/Graphics.cpp b/src/modules/graphics/Graphics.cpp index bb18efc77..44b196a44 100644 --- a/src/modules/graphics/Graphics.cpp +++ b/src/modules/graphics/Graphics.cpp @@ -1927,7 +1927,7 @@ void Graphics::flushBatchedDraws() { auto &sbstate = batchedDrawState; - if (sbstate.vertexCount == 0 && sbstate.indexCount == 0 || sbstate.flushing) + if ((sbstate.vertexCount == 0 && sbstate.indexCount == 0) || sbstate.flushing) return; VertexAttributes attributes;