check for active shader, set FRAGPROG_BIT in raster mask
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 28 Feb 2006 15:44:33 +0000 (15:44 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 28 Feb 2006 15:44:33 +0000 (15:44 +0000)
src/mesa/swrast/s_context.c

index dc5b92d..d8a7a6f 100644 (file)
@@ -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;
    }