Use GLUT for detecting errors.

Rather than polling for errors, let GLUT do it. Can be enabled with the
"-gldebug" CLI flag.
This commit is contained in:
2018-04-13 13:21:30 +02:00
parent 018148efef
commit d20f568836
5 changed files with 32 additions and 25 deletions

View File

@@ -78,7 +78,6 @@ void ActivityAnimation::draw(float timeScale)
glColor4fv(RenderingState::instance().pathColor().data());
glVertexPointer(3, GL_FLOAT, 0, startingPos.data());
glDrawElements(GL_LINES, lineIndices.size(), GL_UNSIGNED_INT, lineIndices.data());
checkGLErrors();
}
glDisableClientState(GL_VERTEX_ARRAY);
}