Fixes error handling in CompileShader

TRAC #11822 Signed-off-by: Andrew Lewycky Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@133 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b8c28edd
......@@ -701,7 +701,14 @@ void __stdcall glCompileShader(GLuint shader)
if (!shaderObject)
{
return error(GL_INVALID_VALUE);
if (context->getProgram(shader))
{
return error(GL_INVALID_OPERATION);
}
else
{
return error(GL_INVALID_VALUE);
}
}
shaderObject->compile();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment