mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +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 indexBuffer = this.indexDataBuffer.uintView;
|
||||||
var indices = gameObject.indices;
|
var indices = gameObject.indices;
|
||||||
var indexLength = indices.length;
|
var indexLength = indices.length;
|
||||||
var indexOffset = this.vertexCount;
|
var indexOffset = 0;
|
||||||
|
|
||||||
tempMatrix.applyITRS(translateX, translateY, rotation, scaleX, scaleY);
|
tempMatrix.applyITRS(translateX, translateY, rotation, scaleX, scaleY);
|
||||||
|
|
||||||
|
@ -258,6 +258,7 @@ SpriteBatch.prototype = {
|
||||||
mvf = sre * cmb + srf * cmd + cmf;
|
mvf = sre * cmb + srf * cmd + cmf;
|
||||||
|
|
||||||
this.manager.setRenderer(this, frame.texture.source[frame.sourceIndex].glTexture, gameObject.renderTarget);
|
this.manager.setRenderer(this, frame.texture.source[frame.sourceIndex].glTexture, gameObject.renderTarget);
|
||||||
|
indexOffset = this.vertexCount;
|
||||||
this.drawIndexed = true;
|
this.drawIndexed = true;
|
||||||
this.drawingMesh = true;
|
this.drawingMesh = true;
|
||||||
this.vertexCount += totalVertices;
|
this.vertexCount += totalVertices;
|
||||||
|
|
Loading…
Reference in a new issue