fix: index check on triangle batch flush
This commit is contained in:
@@ -58,6 +58,9 @@ public class TriangleBatch : ITriangleBatch
|
|||||||
|
|
||||||
private void Flush()
|
private void Flush()
|
||||||
{
|
{
|
||||||
|
if (verticesIndex == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
graphicsDevice.RasterizerState = rasterizerState;
|
graphicsDevice.RasterizerState = rasterizerState;
|
||||||
basicEffect.Projection = _projection;
|
basicEffect.Projection = _projection;
|
||||||
basicEffect.View = _view;
|
basicEffect.View = _view;
|
||||||
|
Reference in New Issue
Block a user