summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_fragprog.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-07 13:58:50 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-07 13:58:50 -0700
commit7b559a91028d297b34df9ec939bd4d00fad6027c (patch)
treea683111f2f543390bea13fc9981c29b9ff58f64a /src/mesa/swrast/s_fragprog.c
parent84d1b24647c0719551e8bcd5fa4601fbd3b1d555 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c
index f5ffe41fc1..a36c1ba491 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);
}
}