Checks link status of program before returning attribute locations.

TRAC #11658 Signed-off-by: Andrew Lewycky Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@130 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e9d6ed03
......@@ -1756,6 +1756,11 @@ int __stdcall glGetAttribLocation(GLuint program, const GLchar* name)
}
}
if (!programObject->isLinked())
{
return error(GL_INVALID_OPERATION, -1);
}
return programObject->getAttributeLocation(name);
}
}
......
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