fix: index check on triangle batch flush

This commit is contained in:
2025-10-10 11:43:04 +03:00
parent f47488c6f1
commit 651b0614c4

View File

@@ -58,6 +58,9 @@ public class TriangleBatch : ITriangleBatch
private void Flush()
{
if (verticesIndex == 0)
return;
graphicsDevice.RasterizerState = rasterizerState;
basicEffect.Projection = _projection;
basicEffect.View = _view;