summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/queryobj.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-30 14:42:14 -0700
committerBrian Paul <[email protected]>2009-12-31 08:49:25 -0700
commit534e0051854e2e455650435f85e6a73aba8f5d64 (patch)
treecabf253dc76541d6d3ca0fda84a8dade0ea9a4f4 /src/mesa/main/queryobj.h
parent4e4244b910c83797e3dde62020618f20eb026908 (diff)
mesa: make _mesa_lookup_query_object() an non-private inline function
Diffstat (limited to 'src/mesa/main/queryobj.h')
-rw-r--r--src/mesa/main/queryobj.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/queryobj.h b/src/mesa/main/queryobj.h
index 6cf3c76d74d..ba8b5dd0029 100644
--- a/src/mesa/main/queryobj.h
+++ b/src/mesa/main/queryobj.h
@@ -28,6 +28,7 @@
#include "main/mtypes.h"
+#include "main/hash.h"
#if FEATURE_queryobj
@@ -42,6 +43,15 @@
(driver)->CheckQuery = impl ## CheckQuery; \
} while (0)
+
+static INLINE struct gl_query_object *
+_mesa_lookup_query_object(GLcontext *ctx, GLuint id)
+{
+ return (struct gl_query_object *)
+ _mesa_HashLookup(ctx->Query.QueryObjects, id);
+}
+
+
extern void GLAPIENTRY
_mesa_GenQueriesARB(GLsizei n, GLuint *ids);