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,8 +701,15 @@ void __stdcall glCompileShader(GLuint shader) ...@@ -701,8 +701,15 @@ void __stdcall glCompileShader(GLuint shader)
if (!shaderObject) if (!shaderObject)
{ {
if (context->getProgram(shader))
{
return error(GL_INVALID_OPERATION);
}
else
{
return error(GL_INVALID_VALUE); return error(GL_INVALID_VALUE);
} }
}
shaderObject->compile(); 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