diff options
author | Ian Romanick <[email protected]> | 2013-06-27 18:20:34 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-06-28 13:35:22 -0700 |
commit | 927f572c27f0e734896fa2b4f93210c7daf1a62a (patch) | |
tree | 9c13021084626783f8fb66ff8f80ff9051aaea90 /src/mesa/main/texparam.c | |
parent | 41853b598c0a49b2e75d7013658806d46beceec0 (diff) |
mesa: GL_EXT_shadow_funcs is not optional with GL_ARB_shadow
Every driver left in Mesa that enables one also enables the other.
There's no reason to let it be optional.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 39cdad35e8e..cf9a3014cde 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -446,21 +446,15 @@ set_tex_parameteri(struct gl_context *ctx, switch (params[0]) { case GL_LEQUAL: case GL_GEQUAL: - flush(ctx); - texObj->Sampler.CompareFunc = params[0]; - return GL_TRUE; case GL_EQUAL: case GL_NOTEQUAL: case GL_LESS: case GL_GREATER: case GL_ALWAYS: case GL_NEVER: - if (ctx->Extensions.EXT_shadow_funcs) { - flush(ctx); - texObj->Sampler.CompareFunc = params[0]; - return GL_TRUE; - } - /* fall-through */ + flush(ctx); + texObj->Sampler.CompareFunc = params[0]; + return GL_TRUE; default: goto invalid_param; } |