Commit f5cda4fc authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

fixed two GCC warnings

parent 497f1a62
......@@ -1324,7 +1324,7 @@ void Shader::setNormalizedAttribute(GLint index, const Vector4<GLuint>& v) {
bool Shader::selectSubroutine(ShaderObject::ShaderType type, const std::string& subroutineName) {
GLuint index = glGetSubroutineIndex(id_, type, subroutineName.c_str());
if (index == -1) {
if (index == GL_INVALID_INDEX) {
LWARNING("Failed to locate subroutine Location: " << subroutineName);
return false;
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