Merge pull request #3967 from TadejZupancic/patch-14

RenderTexture: Texture is always destroyed (canvas)
This commit is contained in:
Richard Davey 2018-08-22 15:14:12 +01:00 committed by GitHub
commit b5116edbe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -829,7 +829,7 @@ var RenderTexture = new Class({
*/
preDestroy: function ()
{
if (this.canvas)
if (this.canvas && !this._saved)
{
CanvasPool.remove(this.canvas);
}