Skip to content

Commit eee3feb

Browse files
committed
Pass Game Object to batchQuad
1 parent c5656fb commit eee3feb

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/gameobjects/bitmaptext/BatchChar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var BatchChar = function (pipeline, src, char, glyph, offsetX, offsetY, calcMatr
4747
var tx3 = calcMatrix.getXRound(xw, y, roundPixels);
4848
var ty3 = calcMatrix.getYRound(xw, y, roundPixels);
4949

50-
pipeline.batchQuad(tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, glyph.u0, glyph.v0, glyph.u1, glyph.v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);
50+
pipeline.batchQuad(src, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, glyph.u0, glyph.v0, glyph.u1, glyph.v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);
5151
};
5252

5353
module.exports = BatchChar;

src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextWebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ var DynamicBitmapTextWebGLRenderer = function (renderer, src, camera, parentMatr
262262
ty3 = Math.round(ty3);
263263
}
264264

265-
pipeline.batchQuad(tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);
265+
pipeline.batchQuad(src, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);
266266
}
267267

268268
if (crop)

src/gameobjects/blitter/BlitterWebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var BlitterWebGLRenderer = function (renderer, src, camera, parentMatrix)
112112
}
113113

114114
// TL x/y, BL x/y, BR x/y, TR x/y
115-
if (pipeline.batchQuad(tx0, ty0, tx0, ty1, tx1, ty1, tx1, ty0, frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect, frame.glTexture, textureUnit))
115+
if (pipeline.batchQuad(src, tx0, ty0, tx0, ty1, tx1, ty1, tx1, ty0, frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect, frame.glTexture, textureUnit))
116116
{
117117
prevTextureSourceIndex = -1;
118118
}

src/gameobjects/particles/ParticleManagerWebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var ParticleManagerWebGLRenderer = function (renderer, emitterManager, camera, p
135135

136136
var tint = getTint(particle.tint, alpha);
137137

138-
pipeline.batchQuad(tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect, texture, textureUnit);
138+
pipeline.batchQuad(emitter, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect, texture, textureUnit);
139139
}
140140

141141
if (emitter.mask)

src/renderer/webgl/WebGLPipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ var WebGLPipeline = new Class({
12231223
v1 = 0;
12241224
}
12251225

1226-
this.batchQuad(x, y, x, yh, xw, yh, xw, y, u0, v0, u1, v1, tint, tint, tint, tint, 0, texture, unit);
1226+
this.batchQuad(null, x, y, x, yh, xw, yh, xw, y, u0, v0, u1, v1, tint, tint, tint, tint, 0, texture, unit);
12271227
},
12281228

12291229
/**

0 commit comments

Comments
 (0)