st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED

Fixes piglit occlusion_query2 failure.
This commit is contained in:
Brian Paul 2011-01-12 14:50:41 -07:00
parent 1b173fb3ba
commit 30616fdacf

View 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;