Fixed farViewer to end query operations

Previously, the unterminated queries resulted in invalid GL operations.
This commit is contained in:
David G Yu 2015-06-05 13:56:40 -07:00
parent ae535c9321
commit 915f7c9d3a

View File

@ -924,6 +924,11 @@ display() {
// -----------------------------------------------------
glEndQuery(GL_PRIMITIVES_GENERATED);
#if defined(GL_VERSION_3_3)
glEndQuery(GL_TIME_ELAPSED);
#endif
GLuint numPrimsGenerated = 0;
GLuint timeElapsed = 0;
glGetQueryObjectuiv(g_queries[0], GL_QUERY_RESULT, &numPrimsGenerated);