mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Update RenderTextureWebGLRenderer.js
This commit is contained in:
parent
25e1d7daea
commit
bb3b67c16f
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue