diff options
author | Ian Romanick <[email protected]> | 2007-06-07 13:58:50 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2007-06-07 13:58:50 -0700 |
commit | 7b559a91028d297b34df9ec939bd4d00fad6027c (patch) | |
tree | a683111f2f543390bea13fc9981c29b9ff58f64a /src/mesa/swrast/s_fragprog.c | |
parent | 84d1b24647c0719551e8bcd5fa4601fbd3b1d555 (diff) |
Add support for GL_ARB_fragment_program_shadow.
Diffstat (limited to 'src/mesa/swrast/s_fragprog.c')
-rw-r--r-- | src/mesa/swrast/s_fragprog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c index f5ffe41fc19..a36c1ba4919 100644 --- a/src/mesa/swrast/s_fragprog.c +++ b/src/mesa/swrast/s_fragprog.c @@ -211,8 +211,9 @@ _swrast_exec_fragment_program( GLcontext *ctx, SWspan *span ) for (i = 0; i < ctx->Const.MaxTextureImageUnits; i++) { if (ctx->Texture.Unit[i]._Current != NULL) { + const GLboolean enable_shadow = ((1 << i) & program->Base.ShadowSamplers); _mesa_update_texture_compare_function(ctx->Texture.Unit[i]._Current, - GL_TRUE); + !enable_shadow); } } |