diff --git a/src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextWebGLRenderer.js b/src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextWebGLRenderer.js index 4f333271e..cbac64a4b 100644 --- a/src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextWebGLRenderer.js +++ b/src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextWebGLRenderer.js @@ -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); diff --git a/src/gameobjects/bitmaptext/static/BitmapTextWebGLRenderer.js b/src/gameobjects/bitmaptext/static/BitmapTextWebGLRenderer.js index fa5b0fb84..b93acad69 100644 --- a/src/gameobjects/bitmaptext/static/BitmapTextWebGLRenderer.js +++ b/src/gameobjects/bitmaptext/static/BitmapTextWebGLRenderer.js @@ -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; diff --git a/src/gameobjects/blitter/BlitterWebGLRenderer.js b/src/gameobjects/blitter/BlitterWebGLRenderer.js index 97957e82e..10d1f383d 100644 --- a/src/gameobjects/blitter/BlitterWebGLRenderer.js +++ b/src/gameobjects/blitter/BlitterWebGLRenderer.js @@ -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; diff --git a/src/gameobjects/image/ImageWebGLRenderer.js b/src/gameobjects/image/ImageWebGLRenderer.js index 9ebbe678e..1267abdd3 100644 --- a/src/gameobjects/image/ImageWebGLRenderer.js +++ b/src/gameobjects/image/ImageWebGLRenderer.js @@ -29,7 +29,6 @@ var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camer } this.pipeline.batchSprite(src, camera, parentMatrix); - }; module.exports = ImageWebGLRenderer; diff --git a/src/gameobjects/mesh/MeshWebGLRenderer.js b/src/gameobjects/mesh/MeshWebGLRenderer.js index 67257970b..839060da4 100644 --- a/src/gameobjects/mesh/MeshWebGLRenderer.js +++ b/src/gameobjects/mesh/MeshWebGLRenderer.js @@ -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; diff --git a/src/gameobjects/particles/ParticleManagerWebGLRenderer.js b/src/gameobjects/particles/ParticleManagerWebGLRenderer.js index 76e71d2ae..1c7b14a2c 100644 --- a/src/gameobjects/particles/ParticleManagerWebGLRenderer.js +++ b/src/gameobjects/particles/ParticleManagerWebGLRenderer.js @@ -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);