aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-10-07 18:47:31 -0700
committerBrian Paul <[email protected]>2008-12-18 09:47:49 -0700
commita402d48f840f1d51eb46dc15a047589e2b8ca431 (patch)
tree6263060a3c6d7caccf06b79b44f74e60194ad2f2 /src
parent92dc8ffa719276fe536abf4dcf7874cf12588f60 (diff)
mesa: Pass the context to query object delete cb to avoid null dereference.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/queryobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index 2d060300300..e3ba7b6ff74 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -546,6 +546,6 @@ delete_queryobj_cb(GLuint id, void *data, void *userData)
void
_mesa_free_query_data(GLcontext *ctx)
{
- _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb, NULL);
+ _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb, ctx);
_mesa_DeleteHashTable(ctx->Query.QueryObjects);
}