phaser-ce icon indicating copy to clipboard operation
phaser-ce copied to clipboard

Multiple RenderTextures with same source only draws first instance, rest throws WebGL error

Open AleBles opened this issue 8 years ago • 0 comments

This Issue is about (✏️ delete as applicable)

  • A bug in the API:
    • Phaser version(s): >=2.7

    • Live example: http://cdn.fbrq.io/phaser-nineslice/example/issue.html

    • What should happen: Second instance of RenderTexture with same origin should be drawn

    • What happens instead: It isn't drawn

This affects users of my library (phaser-nineslice). I could ofcourse also rewrite it to not use RenderTextures, but after seeing http://www.html5gamedevs.com/topic/27041-gldrawelements-source-and-destination-textures-of-the-draw-are-the-same/#comment-165755 I tought I'll just report it.

AleBles avatar Jun 06 '17 13:06 AleBles