st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED
authorBrian Paul <brianp@vmware.com>
Wed, 12 Jan 2011 21:50:41 +0000 (14:50 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Jan 2011 00:55:44 +0000 (17:55 -0700)
Fixes piglit occlusion_query2 failure.

src/mesa/state_tracker/st_cb_queryobj.c

index 35036e72f90652919554c8cc1329efaaa42a9531..d0ac253bcecd9ebfe55fa241e3309be3dccc0ae0 100644 (file)
@@ -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;