summaryrefslogtreecommitdiff
path: root/src/mesa/main/occlude.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-07-22 03:51:46 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-07-22 03:51:46 +0000
commit05944c031cd6bea985050f0e88a19f0794f57887 (patch)
tree23b1def1e5c7fe1efe19deb67c366f811e21cdc0 /src/mesa/main/occlude.c
parentf7fda86c6dcb7894157bd35a0cf15d003d48b441 (diff)
Restore more code lost during last big merge.
Rename colortable-related functions.
Diffstat (limited to 'src/mesa/main/occlude.c')
-rw-r--r--src/mesa/main/occlude.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/occlude.c b/src/mesa/main/occlude.c
index 4a5df2127f..f6dc7056ba 100644
--- a/src/mesa/main/occlude.c
+++ b/src/mesa/main/occlude.c
@@ -53,6 +53,20 @@ struct occlusion_query
};
+
+void
+_mesa_init_occlude(GLcontext *ctx)
+{
+#if FEATURE_ARB_occlusion_query
+ ctx->Occlusion.QueryObjects = _mesa_NewHashTable();
+#endif
+
+ ctx->OcclusionResult = GL_FALSE;
+ ctx->OcclusionResultSaved = GL_FALSE;
+}
+
+
+
/**
* Allocate a new occlusion query object.
* \param target - must be GL_SAMPLES_PASSED_ARB at this time