summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-02-28 15:44:33 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-02-28 15:44:33 +0000
commit3073cf21d2ce13b96c79c4af5ed488ef46a172f9 (patch)
tree2c978d5fe9a6d354a12f78c47a5839e6598fb7d9 /src/mesa
parentd1d41216825c0ac8ece71768145834eb22379248 (diff)
check for active shader, set FRAGPROG_BIT in raster mask
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index dc5b92dbf8..d8a7a6f0e6 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -101,6 +101,11 @@ _swrast_update_rasterflags( GLcontext *ctx )
rasterMask |= FRAGPROG_BIT;
}
+ if (ctx->ShaderObjects.CurrentProgram) {
+ /* XXX Vertex and/or fragment shader (what if no fragment shader??) */
+ rasterMask |= FRAGPROG_BIT;
+ }
+
if (ctx->ATIFragmentShader._Enabled) {
rasterMask |= ATIFRAGSHADER_BIT;
}