another tweak to two-sided detection test
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 Feb 2004 03:34:30 +0000 (03:34 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 Feb 2004 03:34:30 +0000 (03:34 +0000)
src/mesa/swrast_setup/ss_triangle.c

index 39e391261224f2e96a2b3f2ade3e55490a915a1c..88ae07f53973f8554f095fcab32bfa85e0a83e36 100644 (file)
@@ -291,7 +291,7 @@ void _swsetup_choose_trifuncs( GLcontext *ctx )
       ind |= SS_OFFSET_BIT;
 
    if ((ctx->Light.Enabled && ctx->Light.Model.TwoSide) ||
-       ctx->VertexProgram.TwoSideEnabled)
+       (ctx->VertexProgram.Enabled && ctx->VertexProgram.TwoSideEnabled))
       ind |= SS_TWOSIDE_BIT;
 
    /* We piggyback the two-sided stencil front/back determination on the