check if active fragment shader for deferred texturing/shading

This commit is contained in:
Brian Paul
2006-02-28 15:48:19 +00:00
parent 3073cf21d2
commit 34b60b001d
+2 -1
View File
@@ -1084,7 +1084,8 @@ _swrast_write_rgba_span( GLcontext *ctx, struct sw_span *span)
const GLbitfield origArrayMask = span->arrayMask;
const GLboolean deferredTexture = !(ctx->Color.AlphaEnabled ||
ctx->FragmentProgram._Active ||
ctx->ATIFragmentShader._Enabled);
ctx->ATIFragmentShader._Enabled ||
ctx->ShaderObjects.CurrentProgram);
ASSERT(span->primitive == GL_POINT || span->primitive == GL_LINE ||
span->primitive == GL_POLYGON || span->primitive == GL_BITMAP);