From Pavel Moloshtan, added support of Drawable::Extensions::glDeleteQueries()
This commit is contained in:
parent
3a0b742461
commit
1641cd7b54
@ -607,6 +607,7 @@ class OSG_EXPORT Drawable : public Object
|
|||||||
void glBeginQuery(GLenum target, GLuint id) const;
|
void glBeginQuery(GLenum target, GLuint id) const;
|
||||||
void glEndQuery(GLenum target) const;
|
void glEndQuery(GLenum target) const;
|
||||||
GLboolean glIsQuery(GLuint id) const;
|
GLboolean glIsQuery(GLuint id) const;
|
||||||
|
void glDeleteQueries(GLsizei n, const GLuint *ids) const;
|
||||||
void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const;
|
void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const;
|
||||||
void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) const;
|
void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) const;
|
||||||
|
|
||||||
|
@ -1294,6 +1294,14 @@ GLboolean Drawable::Extensions::glIsQuery(GLuint id) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Drawable::Extensions::glDeleteQueries(GLsizei n, const GLuint *ids) const
|
||||||
|
{
|
||||||
|
if (_gl_delete_queries_arb)
|
||||||
|
_gl_delete_queries_arb(n, ids);
|
||||||
|
else
|
||||||
|
osg::notify(osg::WARN) << "Error: glIsQuery not supported by OpenGL driver" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
void Drawable::Extensions::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const
|
void Drawable::Extensions::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const
|
||||||
{
|
{
|
||||||
if (_gl_get_query_objectiv_arb)
|
if (_gl_get_query_objectiv_arb)
|
||||||
|
Loading…
Reference in New Issue
Block a user