summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get_gen.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-07-15 23:08:06 +0000
committerBrian Paul <[email protected]>2005-07-15 23:08:06 +0000
commit1f88391747ef11efd54d42770d99b3c3a0cca8a8 (patch)
treeb7f28658b70dcbfa47a2c7b69fbd5802e95c3ed4 /src/mesa/main/get_gen.py
parentd39760d71869b96140f7ac82b1029d0a3b79aae4 (diff)
need to flush vertices for GL_OCCLUSION_TEST_RESULT_HP query
Diffstat (limited to 'src/mesa/main/get_gen.py')
-rw-r--r--src/mesa/main/get_gen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py
index 9f1be8b9350..4eedc03c7a8 100644
--- a/src/mesa/main/get_gen.py
+++ b/src/mesa/main/get_gen.py
@@ -562,7 +562,8 @@ StateVars = [
( "GL_OCCLUSION_TEST_HP", GLboolean, ["ctx->Depth.OcclusionTest"], "",
"HP_occlusion_test" ),
( "GL_OCCLUSION_TEST_RESULT_HP", GLboolean, [],
- """if (ctx->Depth.OcclusionTest)
+ """FLUSH_VERTICES(ctx, _NEW_DEPTH);
+ if (ctx->Depth.OcclusionTest)
params[0] = ctx->OcclusionResult;
else
params[0] = ctx->OcclusionResultSaved;