Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put shadersEnabled check in Unuse

  • Loading branch information...
commit ff357bf07dbd43809853024c8bcd17c11ec7f0ed 1 parent 727e784
@Luomu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/graphics/Shader.cpp
View
3  src/graphics/Shader.cpp
@@ -156,7 +156,8 @@ bool Shader::Use()
void Shader::Unuse()
{
- glUseProgram(0);
+ if (shadersEnabled)
+ glUseProgram(0);
m_currentShader = 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.