Skip to content

Commit 3bc118f

Browse files
committed
Early exit if vertexCount == 0
1 parent ccb0cc3 commit 3bc118f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/Builders/yyVBufferBuilder.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ function yyVBufferBuilder(_size) {
369369
vertexCount = m_vertexCount - _offset;
370370
}
371371

372+
if (vertexCount <= 0) {
373+
return;
374+
}
375+
372376
if (m_frozen) {
373377

374378
// Directly submit the vertex buffer

0 commit comments

Comments
 (0)