ShaderSource does not generate needed errors

TRAC #11664 Generate GL_INVALID_VALUE when shader name is 0 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@95 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 296ca9cc
......@@ -2903,7 +2903,7 @@ void __stdcall glShaderSource(GLuint shader, GLsizei count, const char** string,
try
{
if (count < 0)
if (shader == 0 || count < 0)
{
return error(GL_INVALID_VALUE);
}
......
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