Skip to content

Commit

Permalink
Fix SurfaceShader staying in realised mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Dec 20, 2017
1 parent a4ff61d commit 71d5251
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/SurfaceShader.h
Expand Up @@ -214,6 +214,11 @@ class SurfaceShader :

if (_glShader)
{
if (_glShader->isRealised())
{
unrealise();
}

if (_inUse)
{
_glShader->decrementUsed();
Expand Down

0 comments on commit 71d5251

Please sign in to comment.