mesa: Pass the context to query object delete cb to avoid null dereference.
authorEric Anholt <eric@anholt.net>
Wed, 8 Oct 2008 01:47:31 +0000 (18:47 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Dec 2008 16:47:49 +0000 (09:47 -0700)
src/mesa/main/queryobj.c

index 2d060300300e529242d30a5f3479a9836dde597b..e3ba7b6ff7444b19579343a2e9b16cb3d86d729b 100644 (file)
@@ -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);
 }