aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/condrender.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/main/condrender.c')
-rw-r--r--mesalib/src/mesa/main/condrender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/condrender.c b/mesalib/src/mesa/main/condrender.c
index 57f371521..bfd2b0818 100644
--- a/mesalib/src/mesa/main/condrender.c
+++ b/mesalib/src/mesa/main/condrender.c
@@ -139,6 +139,8 @@ _mesa_check_conditional_render(struct gl_context *ctx)
case GL_QUERY_BY_REGION_NO_WAIT:
/* fall-through */
case GL_QUERY_NO_WAIT:
+ if (!q->Ready)
+ ctx->Driver.CheckQuery(ctx, q);
return q->Ready ? (q->Result > 0) : GL_TRUE;
default:
_mesa_problem(ctx, "Bad cond render mode %s in "