This commit is contained in:
Richard Davey 2018-05-23 14:55:51 +01:00
parent b6768f8a0f
commit 1a1dbe2dd7

View file

@ -178,7 +178,7 @@ var RenderTexture = new Class({
*/
preDestroy: function ()
{
if (this.renderer && this.renderer.gl)
if (this.renderer && this.renderer.gl)
{
this.renderer.deleteTexture(this.texture);
this.renderer.deleteFramebuffer(this.framebuffer);