Merge branch 'mesa_7_7_branch'
[mesa.git] / src / mesa / main / queryobj.h
index 6cf3c76d74dafb5397e724099ea2b8f8c5ebc753..ba8b5dd0029e8ba3231ff98a1da3ad11d3338c6a 100644 (file)
@@ -28,6 +28,7 @@
 
 
 #include "main/mtypes.h"
+#include "main/hash.h"
 
 
 #if FEATURE_queryobj
       (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);