From 05944c031cd6bea985050f0e88a19f0794f57887 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 22 Jul 2003 03:51:46 +0000 Subject: Restore more code lost during last big merge. Rename colortable-related functions. --- src/mesa/main/occlude.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mesa/main/occlude.c') 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 -- cgit v1.2.3