summaryrefslogtreecommitdiff
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-15 23:08:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-15 23:08:06 +0000
commit1f88391747ef11efd54d42770d99b3c3a0cca8a8 (patch)
treeb7f28658b70dcbfa47a2c7b69fbd5802e95c3ed4 /src/mesa/main/get.c
parentd39760d71869b96140f7ac82b1029d0a3b79aae4 (diff)
need to flush vertices for GL_OCCLUSION_TEST_RESULT_HP query
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index fcc879576c..bfeb1d6d2a 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1186,6 +1186,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
case GL_OCCLUSION_TEST_RESULT_HP:
CHECK_EXTENSION_B(HP_occlusion_test, pname);
{
+ FLUSH_VERTICES(ctx, _NEW_DEPTH);
if (ctx->Depth.OcclusionTest)
params[0] = ctx->OcclusionResult;
else
@@ -3030,6 +3031,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
case GL_OCCLUSION_TEST_RESULT_HP:
CHECK_EXTENSION_F(HP_occlusion_test, pname);
{
+ FLUSH_VERTICES(ctx, _NEW_DEPTH);
if (ctx->Depth.OcclusionTest)
params[0] = ctx->OcclusionResult;
else
@@ -4874,6 +4876,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
case GL_OCCLUSION_TEST_RESULT_HP:
CHECK_EXTENSION_I(HP_occlusion_test, pname);
{
+ FLUSH_VERTICES(ctx, _NEW_DEPTH);
if (ctx->Depth.OcclusionTest)
params[0] = ctx->OcclusionResult;
else