Mesa (master): mesa: add missing GLcontext param to _mesa_delete_query().

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 6 15:28:00 UTC 2008


Module: Mesa
Branch: master
Commit: 382911bdbce5545117d5a70ce7e43b71e8396e32
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=382911bdbce5545117d5a70ce7e43b71e8396e32

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Mon Oct  6 09:26:45 2008 -0600

mesa: add missing GLcontext param to _mesa_delete_query().

Fixes vtk crash and others.

---

 src/mesa/main/queryobj.c |    2 +-
 src/mesa/main/queryobj.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index a1e32e7..2d06030 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -95,7 +95,7 @@ _mesa_wait_query(GLcontext *ctx, struct gl_query_object *q)
  * XXX maybe add Delete() method to gl_query_object class and call that instead
  */
 void
-_mesa_delete_query(struct gl_query_object *q)
+_mesa_delete_query(GLcontext *ctx, struct gl_query_object *q)
 {
    _mesa_free(q);
 }
diff --git a/src/mesa/main/queryobj.h b/src/mesa/main/queryobj.h
index c05a1f3..9a97746 100644
--- a/src/mesa/main/queryobj.h
+++ b/src/mesa/main/queryobj.h
@@ -37,7 +37,7 @@ extern void
 _mesa_free_query_data(GLcontext *ctx);
 
 extern void
-_mesa_delete_query(struct gl_query_object *q);
+_mesa_delete_query(GLcontext *ctx, struct gl_query_object *q);
 
 extern void
 _mesa_begin_query(GLcontext *ctx, struct gl_query_object *q);




More information about the mesa-commit mailing list