Skip to content

Commit

Permalink
preventing null reference error in fragment filter
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimaryFeather committed Mar 4, 2016
1 parent cad7f9c commit f4032fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starling/src/starling/filters/FragmentFilter.as
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4032fc

Please sign in to comment.