handle case where there are no instances
parent
e2fdbff7d1
commit
bb694d3dbe
|
@ -344,6 +344,8 @@ namespace Kav
|
|||
numInstances += 1;
|
||||
}
|
||||
|
||||
if (numInstances == 0) { return; }
|
||||
|
||||
GBufferInstanceVertexBuffer.SetData(
|
||||
GBufferInstanceVertices,
|
||||
0,
|
||||
|
|
Loading…
Reference in New Issue