diff options
author | Brian Paul <[email protected]> | 2003-07-22 03:51:46 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-07-22 03:51:46 +0000 |
commit | 05944c031cd6bea985050f0e88a19f0794f57887 (patch) | |
tree | 23b1def1e5c7fe1efe19deb67c366f811e21cdc0 /src/mesa/main/occlude.c | |
parent | f7fda86c6dcb7894157bd35a0cf15d003d48b441 (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.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/occlude.c b/src/mesa/main/occlude.c index 4a5df2127ff..f6dc7056ba1 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 |