Skip to content

Commit 86b829e

Browse files
committed
Blank the texture after drawing
1 parent d50b72d commit 86b829e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gameobjects/rendertexture/RenderTextureWebGLRenderer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ var RenderTextureWebGLRenderer = function (renderer, src, interpolationPercentag
4646
camera,
4747
parentMatrix
4848
);
49+
50+
// Force clear the current texture so that items next in the batch (like Graphics) don't try and use it
51+
renderer.setBlankTexture(true);
4952
};
5053

5154
module.exports = RenderTextureWebGLRenderer;

0 commit comments

Comments
 (0)