diff options
author | Brian Paul <[email protected]> | 2006-02-28 15:44:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-02-28 15:44:33 +0000 |
commit | 3073cf21d2ce13b96c79c4af5ed488ef46a172f9 (patch) | |
tree | 2c978d5fe9a6d354a12f78c47a5839e6598fb7d9 /src/mesa/swrast/s_context.c | |
parent | d1d41216825c0ac8ece71768145834eb22379248 (diff) |
check for active shader, set FRAGPROG_BIT in raster mask
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index dc5b92dbf8f..d8a7a6f0e63 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; } |