Update RenderTextureWebGLRenderer.js

This commit is contained in:
Richard Davey 2020-07-23 17:01:25 +01:00
parent 25e1d7daea
commit bb3b67c16f

View file

@ -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;