Skip to content

Commit 9a1b252

Browse files
committed
Use shouldFlush
1 parent 371fb5e commit 9a1b252

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/renderer/webgl/pipelines/SinglePipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var SinglePipeline = new Class({
156156

157157
var hasFlushed = false;
158158

159-
if (this.vertexCount + 6 > this.vertexCapacity)
159+
if (this.shouldFlush(6))
160160
{
161161
this.flush();
162162

@@ -260,7 +260,7 @@ var SinglePipeline = new Class({
260260

261261
var hasFlushed = false;
262262

263-
if (this.vertexCount + 3 > this.vertexCapacity)
263+
if (this.shouldFlush(3))
264264
{
265265
this.flush();
266266

0 commit comments

Comments
 (0)