mesa: add missing GLcontext param to _mesa_delete_query().
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 15:27:31 +0000 (09:27 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 15:27:31 +0000 (09:27 -0600)
Fixes vtk crash and others.

src/mesa/main/queryobj.c
src/mesa/main/queryobj.h

index a1e32e7..2d06030 100644 (file)
@@ -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);
 }
index c05a1f3..9a97746 100644 (file)
@@ -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);