浏览代码

MeshBatch : Fix typo

TothBenoit 4 月之前
父节点
当前提交
3c9c0204d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/scene/MeshBatch.hx

+ 1 - 0
h3d/scene/MeshBatch.hx

@@ -362,6 +362,7 @@ class MeshBatch extends MultiMaterial {
 								psBytes.setInt32(i*instanceSize+16, i);
 						}
 
+						var ibufMaxCommandCount = ibuf.maxCommandCount;
 						if ( shouldResizeDown(ibufMaxCommandCount, count) || count > ibufMaxCommandCount) {
 							ibuf.allocFromBytes(count, psBytes);
 						} else {