Fixed glBindProgramObject used on systems that don't support shaders

This commit is contained in:
Laurent Gomila 2011-12-31 11:42:05 +01:00
parent 2a546411d5
commit c0af511ed1

View File

@ -270,6 +270,7 @@ void RenderTarget::ResetGLStates()
ApplyBlendMode(BlendAlpha); ApplyBlendMode(BlendAlpha);
ApplyTransform(Transform::Identity); ApplyTransform(Transform::Identity);
ApplyTexture(NULL); ApplyTexture(NULL);
if (Shader::IsAvailable())
ApplyShader(NULL); ApplyShader(NULL);
myCache.UseVertexCache = false; myCache.UseVertexCache = false;