From 30616fdacfd3e2d8d3df64e4aa6b4cac405f3cf0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 12 Jan 2011 14:50:41 -0700 Subject: [PATCH] st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED Fixes piglit occlusion_query2 failure. --- src/mesa/state_tracker/st_cb_queryobj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c index 35036e72f90..d0ac253bcec 100644 --- a/src/mesa/state_tracker/st_cb_queryobj.c +++ b/src/mesa/state_tracker/st_cb_queryobj.c @@ -85,6 +85,8 @@ st_BeginQuery(struct gl_context *ctx, struct gl_query_object *q) /* convert GL query type to Gallium query type */ switch (q->Target) { + case GL_ANY_SAMPLES_PASSED: + /* fall-through */ case GL_SAMPLES_PASSED_ARB: type = PIPE_QUERY_OCCLUSION_COUNTER; break; -- 2.30.2