handle case where there are no instances

instancing
cosmonaut 2020-12-07 15:51:24 -08:00
parent e2fdbff7d1
commit bb694d3dbe
1 changed files with 2 additions and 0 deletions

View File

@ -344,6 +344,8 @@ namespace Kav
numInstances += 1; numInstances += 1;
} }
if (numInstances == 0) { return; }
GBufferInstanceVertexBuffer.SetData( GBufferInstanceVertexBuffer.SetData(
GBufferInstanceVertices, GBufferInstanceVertices,
0, 0,