mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Fixed index offset
This commit is contained in:
parent
7b0370c57b
commit
22bc09dfd2
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,7 @@ SpriteBatch.prototype = {
|
|||
var indexBuffer = this.indexDataBuffer.uintView;
|
||||
var indices = gameObject.indices;
|
||||
var indexLength = indices.length;
|
||||
var indexOffset = this.vertexCount;
|
||||
var indexOffset = 0;
|
||||
|
||||
tempMatrix.applyITRS(translateX, translateY, rotation, scaleX, scaleY);
|
||||
|
||||
|
@ -258,6 +258,7 @@ SpriteBatch.prototype = {
|
|||
mvf = sre * cmb + srf * cmd + cmf;
|
||||
|
||||
this.manager.setRenderer(this, frame.texture.source[frame.sourceIndex].glTexture, gameObject.renderTarget);
|
||||
indexOffset = this.vertexCount;
|
||||
this.drawIndexed = true;
|
||||
this.drawingMesh = true;
|
||||
this.vertexCount += totalVertices;
|
||||
|
|
Loading…
Reference in a new issue