fix: compiler warnings
This commit is contained in:
@@ -35,14 +35,6 @@ int ShaderProgram::getUniformLocation(const std::string& uniformName) const{
|
||||
const int location = glGetUniformLocation(programID, uniformName.c_str());
|
||||
if (location == -1){
|
||||
std::cout << "Warning ! Uniform variable " << uniformName << " not found !\n";
|
||||
const GLenum error = glGetError();
|
||||
switch (error){
|
||||
case GL_INVALID_VALUE:
|
||||
break;
|
||||
|
||||
case GL_INVALID_OPERATION:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return location;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user