Use shouldFlush

This commit is contained in:
Richard Davey 2020-09-18 17:50:57 +01:00
parent 371fb5e68a
commit 9a1b252a11

View file

@ -156,7 +156,7 @@ var SinglePipeline = new Class({
var hasFlushed = false;
if (this.vertexCount + 6 > this.vertexCapacity)
if (this.shouldFlush(6))
{
this.flush();
@ -260,7 +260,7 @@ var SinglePipeline = new Class({
var hasFlushed = false;
if (this.vertexCount + 3 > this.vertexCapacity)
if (this.shouldFlush(3))
{
this.flush();