mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 05:50:05 +00:00
Fixed farViewer to end query operations
Previously, the unterminated queries resulted in invalid GL operations.
This commit is contained in:
parent
ae535c9321
commit
915f7c9d3a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user