mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Use shouldFlush
This commit is contained in:
parent
371fb5e68a
commit
9a1b252a11
1 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ var SinglePipeline = new Class({
|
||||||
|
|
||||||
var hasFlushed = false;
|
var hasFlushed = false;
|
||||||
|
|
||||||
if (this.vertexCount + 6 > this.vertexCapacity)
|
if (this.shouldFlush(6))
|
||||||
{
|
{
|
||||||
this.flush();
|
this.flush();
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ var SinglePipeline = new Class({
|
||||||
|
|
||||||
var hasFlushed = false;
|
var hasFlushed = false;
|
||||||
|
|
||||||
if (this.vertexCount + 3 > this.vertexCapacity)
|
if (this.shouldFlush(3))
|
||||||
{
|
{
|
||||||
this.flush();
|
this.flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue