From f4032fc41d9ebe0abf9ac729f4ff22570d45cfe9 Mon Sep 17 00:00:00 2001 From: Daniel Sperl Date: Fri, 4 Mar 2016 11:54:51 +0100 Subject: [PATCH] preventing null reference error in fragment filter --- starling/src/starling/filters/FragmentFilter.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starling/src/starling/filters/FragmentFilter.as b/starling/src/starling/filters/FragmentFilter.as index 64468115e..229fe853e 100755 --- a/starling/src/starling/filters/FragmentFilter.as +++ b/starling/src/starling/filters/FragmentFilter.as @@ -356,7 +356,7 @@ package starling.filters { if (_pool) _pool.purge(); if (_effect) _effect.purgeBuffers(); - if (_quad) { _quad.texture.dispose(); _quad.texture = null; } + if (_quad && _quad.texture) { _quad.texture.dispose(); _quad.texture = null; } } if (prevTarget)