mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 12:50:12 +01:00
st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED
Fixes piglit occlusion_query2 failure.
This commit is contained in:
parent
1b173fb3ba
commit
30616fdacf
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue