Small OpenGL fixes

This commit is contained in:
2018-04-04 11:41:06 +02:00
parent d578a60a0c
commit 9030841910
3 changed files with 31 additions and 18 deletions

View File

@@ -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;