Browse Source

Bug fix for index into queries.

shared-context
Doug Binks 11 years ago
parent
commit
a1e99ea940
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      example/example_gl3.c

+ 1
- 1
example/example_gl3.c View File

@@ -175,7 +175,7 @@ int main()
glEndQuery(GL_TIME_ELAPSED); glEndQuery(GL_TIME_ELAPSED);
while( available && retquery <= currquery ) { while( available && retquery <= currquery ) {
// check for results if there are any // check for results if there are any
glGetQueryObjectiv(timerqueryid[retquery], GL_QUERY_RESULT_AVAILABLE, &available);
glGetQueryObjectiv(timerqueryid[retquery % NUM_QUERIES], GL_QUERY_RESULT_AVAILABLE, &available);
if( available ) { if( available ) {
GLuint64 timeElapsed = 0; GLuint64 timeElapsed = 0;
double gpuTime; double gpuTime;


Loading…
Cancel
Save