Permalink
Browse files

Put shadersEnabled check in Unuse

  • Loading branch information...
1 parent 727e784 commit ff357bf07dbd43809853024c8bcd17c11ec7f0ed @Luomu committed Feb 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/graphics/Shader.cpp
@@ -156,7 +156,8 @@ bool Shader::Use()
void Shader::Unuse()
{
- glUseProgram(0);
+ if (shadersEnabled)
+ glUseProgram(0);
m_currentShader = 0;
}

0 comments on commit ff357bf

Please sign in to comment.