diff --git a/src/gameobjects/rendertexture/RenderTextureWebGLRenderer.js b/src/gameobjects/rendertexture/RenderTextureWebGLRenderer.js index c1af7cf85..7f2462632 100644 --- a/src/gameobjects/rendertexture/RenderTextureWebGLRenderer.js +++ b/src/gameobjects/rendertexture/RenderTextureWebGLRenderer.js @@ -29,6 +29,10 @@ var RenderTextureWebGLRenderer = function (renderer, src, interpolationPercentag var getTint = Utils.getTintAppendFloatAlpha; var pipeline = src.pipeline; + renderer.setPipeline(pipeline, src); + + var textureUnit = pipeline.setTexture2D(frame.glTexture, src); + pipeline.batchTexture( src, frame.glTexture, @@ -48,11 +52,10 @@ var RenderTextureWebGLRenderer = function (renderer, src, interpolationPercentag (src._isTinted && src.tintFill), 0, 0, camera, - parentMatrix + parentMatrix, + false, + textureUnit ); - - // Force clear the current texture so that items next in the batch (like Graphics) don't try and use it - // renderer.setBlankTexture(true); }; module.exports = RenderTextureWebGLRenderer;