From 3073cf21d2ce13b96c79c4af5ed488ef46a172f9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 28 Feb 2006 15:44:33 +0000 Subject: check for active shader, set FRAGPROG_BIT in raster mask --- src/mesa/swrast/s_context.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/swrast') 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; } -- cgit v1.2.3