Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glGetQueryObjectiv in EXT_disjoint_timer_query.txt example code do not exist #619

Open
shutaozhenzhen opened this issue Jul 10, 2024 · 3 comments

Comments

@shutaozhenzhen
Copy link

shutaozhenzhen commented Jul 10, 2024

glGetQueryObjectiv are called in line 448 and line 505 in EXT_disjoint_timer_query.txt(also EXT_timer_query.txt and ARB_timer_query.txt and some other files)

        /* Wait for the query result to become available */
        while (!available) {
            glGetQueryObjectiv(queries[1], GL_QUERY_RESULT_AVAILABLE, &available);
        }

But I can't find such a function in header files.

I can only find glGetQueryObjectivEXT in gl2ext.h and glGetQueryObjectuiv in gl32.h gl31.h gl3.h

@SunSerega
Copy link
Contributor

SunSerega commented Jul 10, 2024

In xml\gl.xml it's defined under GL_VERSION_1_5.

And in headers... I see it in these 2 files:

  • api\GL\glcorearb.h
  • api\GL\glext.h

@shutaozhenzhen
Copy link
Author

Strangely, this function cannot be found by github.

I still recommend glGetQueryObjectuiv instead of glGetQueryObjectiv, since these extensions are likely to be implemented in opengles (as in my case), and opengles does not have a glGetQueryObjectiv function

@shutaozhenzhen
Copy link
Author

also, line 551:

        glGetIntegerv(GL_TIMESTAMP_EXT, &flushTime);

I recommend use glGetInteger64v, since example code use glGetQueryObjectui64vEXT get 64bit glQueryCounterEXT result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants