Pass GO to setPipeline

This commit is contained in:
Richard Davey 2018-07-11 16:23:44 +01:00
parent 82b15c8695
commit 5ba80defb7
6 changed files with 4 additions and 6 deletions

View file

@ -34,7 +34,7 @@ var DynamicBitmapTextWebGLRenderer = function (renderer, src, interpolationPerce
var pipeline = this.pipeline;
renderer.setPipeline(pipeline);
renderer.setPipeline(pipeline, src);
var crop = (src.cropWidth > 0 || src.cropHeight > 0);

View file

@ -34,7 +34,7 @@ var BitmapTextWebGLRenderer = function (renderer, src, interpolationPercentage,
var pipeline = this.pipeline;
renderer.setPipeline(pipeline);
renderer.setPipeline(pipeline, src);
var camMatrix = pipeline._tempMatrix1;
var spriteMatrix = pipeline._tempMatrix2;

View file

@ -31,7 +31,7 @@ var BlitterWebGLRenderer = function (renderer, src, interpolationPercentage, cam
var pipeline = this.pipeline;
renderer.setPipeline(pipeline);
renderer.setPipeline(pipeline, src);
var cameraScrollX = camera.scrollX * src.scrollFactorX;
var cameraScrollY = camera.scrollY * src.scrollFactorY;

View file

@ -29,7 +29,6 @@ var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camer
}
this.pipeline.batchSprite(src, camera, parentMatrix);
};
module.exports = ImageWebGLRenderer;

View file

@ -31,7 +31,7 @@ var MeshWebGLRenderer = function (renderer, src, interpolationPercentage, camera
var pipeline = this.pipeline;
renderer.setPipeline(pipeline);
renderer.setPipeline(pipeline, src);
var camMatrix = pipeline._tempMatrix1;
var spriteMatrix = pipeline._tempMatrix2;

View file

@ -39,7 +39,6 @@ var ParticleManagerWebGLRenderer = function (renderer, emitterManager, interpola
renderer.setPipeline(pipeline);
var roundPixels = camera.roundPixels;
// var emitters = emitterManager.emitters.list;
var texture = emitterManager.defaultFrame.glTexture;
pipeline.setTexture2D(texture, 0);