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