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,7 +270,8 @@ void RenderTarget::ResetGLStates()
ApplyBlendMode(BlendAlpha);
ApplyTransform(Transform::Identity);
ApplyTexture(NULL);
ApplyShader(NULL);
if (Shader::IsAvailable())
ApplyShader(NULL);
myCache.UseVertexCache = false;
// Set the default view