mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Pass GO to setPipeline
This commit is contained in:
parent
82b15c8695
commit
5ba80defb7
6 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,7 +29,6 @@ var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camer
|
|||
}
|
||||
|
||||
this.pipeline.batchSprite(src, camera, parentMatrix);
|
||||
|
||||
};
|
||||
|
||||
module.exports = ImageWebGLRenderer;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue