summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-06 09:27:31 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-06 09:27:31 -0600
commitf362788eae3d300e4003e8996dc79fc1947a0f60 (patch)
tree47195c5be5e64e8d3b7432de90aa77ce8d02aaec /src/mesa/main
parent9b827018133868e84ddc0998a5b5387584c7478c (diff)
mesa: add missing GLcontext param to _mesa_delete_query().
Fixes vtk crash and others.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/queryobj.c2
-rw-r--r--src/mesa/main/queryobj.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index a1e32e70ba..2d06030030 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 c05a1f3da8..9a9774641b 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);