summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-13 13:56:53 -0600
committerBrian Paul <[email protected]>2008-06-13 13:58:09 -0600
commit2b4e2841a70ddba683158b4310b19c98037a2337 (patch)
tree745354bfa744fdf3a22fa5738b93a95bfe292c55 /src/mesa/main/context.c
parentbe16f04e76be28dd0bab039b21b63ce0752de336 (diff)
mesa: check FEATURE_ARB_occlusion_query
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 8f22f6bb785..e2f3ffb17b0 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -126,7 +126,9 @@
#include "pixelstore.h"
#include "points.h"
#include "polygon.h"
+#if FEATURE_ARB_occlusion_query
#include "queryobj.h"
+#endif
#if FEATURE_drawpix
#include "rastpos.h"
#endif
@@ -1013,7 +1015,9 @@ init_attrib_groups(GLcontext *ctx)
_mesa_init_point( ctx );
_mesa_init_polygon( ctx );
_mesa_init_program( ctx );
+#if FEATURE_ARB_occlusion_query
_mesa_init_query( ctx );
+#endif
#if FEATURE_drawpix
_mesa_init_rastpos( ctx );
#endif
@@ -1213,6 +1217,7 @@ _mesa_create_context(const GLvisual *visual,
{
GLcontext *ctx;
+ printf("***** enter %s\n", __FUNCTION__);
ASSERT(visual);
/*ASSERT(driverContext);*/
@@ -1273,7 +1278,9 @@ _mesa_free_context_data( GLcontext *ctx )
#endif
_mesa_free_program_data(ctx);
_mesa_free_shader_state(ctx);
+#if FEATURE_ARB_occlusion_query
_mesa_free_query_data(ctx);
+#endif
#if FEATURE_ARB_vertex_buffer_object
_mesa_delete_buffer_object(ctx, ctx->Array.NullBufferObj);