Skip to content

Commit 44f7629

Browse files
committed
Tidying up the new batch.
1 parent 30dea30 commit 44f7629

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/renderer/webgl/batches/BaseBatch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Phaser.Renderer.WebGL.Batch.Base.prototype = {
8989
start: function ()
9090
{
9191
this._i = 0;
92-
this.dirty = true;
92+
// this.dirty = true;
9393
this.currentBatchSize = 0;
9494

9595
this.init();
@@ -102,7 +102,7 @@ Phaser.Renderer.WebGL.Batch.Base.prototype = {
102102
this.flush();
103103
}
104104

105-
this.dirty = true;
105+
// this.dirty = true;
106106
},
107107

108108
/*

src/renderer/webgl/batches/ImageBatch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ Phaser.Renderer.WebGL.Batch.Image.prototype = {
190190
// Set Shader
191191
gl.useProgram(program);
192192

193+
gl.bindBuffer(gl.ARRAY_BUFFER, this.vertexBuffer);
194+
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.indexBuffer);
195+
193196
// Get and store the attributes
194197

195198
// vertex position

0 commit comments

Comments
 (0)