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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user