From 1641cd7b54270a7fa5d8ca48f3a4d1da6001fe6b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 16 Jun 2005 13:53:52 +0000 Subject: [PATCH] From Pavel Moloshtan, added support of Drawable::Extensions::glDeleteQueries() --- include/osg/Drawable | 1 + src/osg/Drawable.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/osg/Drawable b/include/osg/Drawable index 1d00ae7f7..701e13f09 100644 --- a/include/osg/Drawable +++ b/include/osg/Drawable @@ -607,6 +607,7 @@ class OSG_EXPORT Drawable : public Object void glBeginQuery(GLenum target, GLuint id) const; void glEndQuery(GLenum target) const; GLboolean glIsQuery(GLuint id) const; + void glDeleteQueries(GLsizei n, const GLuint *ids) const; void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) const; void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) const; diff --git a/src/osg/Drawable.cpp b/src/osg/Drawable.cpp index e925f9fea..3a18f9d6f 100644 --- a/src/osg/Drawable.cpp +++ b/src/osg/Drawable.cpp @@ -1294,6 +1294,14 @@ GLboolean Drawable::Extensions::glIsQuery(GLuint id) const 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 { if (_gl_get_query_objectiv_arb)