Khronos Public Bugzilla
Bug 432 - Example code in ARB_timer_query uses GLint instead of GLuint for query objects
Example code in ARB_timer_query uses GLint instead of GLuint for query objects
Status: RESOLVED FIXED
Product: OpenGL
Classification: Unclassified
Component: Registry
unspecified
PC All
: P3 normal
: ---
Assigned To: Jon Leech
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-09 19:29 PST by Leith Bade
Modified: 2013-07-11 01:20 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leith Bade 2011-02-09 19:29:16 PST
In ARB_timer_query's three code examples the array used for storing query objects is defined as a GLint instead of GLuint.

E.g:
        GLint queries[N];
        GLint available = 0;
        // timer queries can contain more than 32 bits of data, so always
        // query them using the 64 bit types to avoid overflow
        GLuint64 timeElapsed = 0;
        ...

Should be:
        GLuint queries[N];
        ...
Comment 1 Jon Leech 2013-07-11 01:20:06 PDT
Thanks. This is being updated and will push to the registry website soon.