fixed the unreachable GL error check in getAttribOrUniformLocation in demos/shapes/shapes.c as noted by Kevin Morgan
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1722 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
b9ee7f2cd4
commit
d778f6fc64
@ -286,6 +286,7 @@ GLint getAttribOrUniformLocation(const char* name, GLuint program, GLboolean isA
|
||||
fprintf(stderr, "Warning: Could not bind attrib %s\n", name);
|
||||
}
|
||||
|
||||
checkError ("getAttribOrUniformLocation");
|
||||
return attrib;
|
||||
}
|
||||
else
|
||||
@ -296,9 +297,9 @@ GLint getAttribOrUniformLocation(const char* name, GLuint program, GLboolean isA
|
||||
fprintf(stderr, "Warning: Could not bind uniform %s\n", name);
|
||||
}
|
||||
|
||||
checkError ("getAttribOrUniformLocation");
|
||||
return uniform;
|
||||
}
|
||||
checkError ("getAttribOrUniformLocation");
|
||||
}
|
||||
|
||||
GLuint program;
|
||||
|
Reference in New Issue
Block a user