Small OpenGL fixes
This commit is contained in:
@@ -79,7 +79,6 @@ int Shader::getUniform(const char* name) {
|
||||
return loc;
|
||||
}
|
||||
int Shader::getAttribute(const char* name) {
|
||||
vao.bind();
|
||||
int loc = attributeLocation(name);
|
||||
if (loc == -1) {throw std::runtime_error("error");}
|
||||
return loc;
|
||||
|
||||
Reference in New Issue
Block a user