simplify update two-side lighting test (follow-on to previous front/back-face changes)
authorBrian <brian.paul@tungstengraphics.com>
Tue, 18 Dec 2007 23:12:23 +0000 (16:12 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 18 Dec 2007 23:24:19 +0000 (16:24 -0700)
src/mesa/swrast_setup/ss_triangle.c

index 4817d239321801eb88868b1a913805f232022e84..5a0f1f2429c7f3abb6f432ef9600094f8b1e1d32 100644 (file)
@@ -294,10 +294,8 @@ void _swsetup_choose_trifuncs( GLcontext *ctx )
        ctx->Polygon.OffsetFill)
       ind |= SS_OFFSET_BIT;
 
-   /* Note: gl_FrontFacing lives in fragment input FOGC.Y at this time */
    if ((ctx->Light.Enabled && ctx->Light.Model.TwoSide) ||
-       (ctx->VertexProgram._Enabled && ctx->VertexProgram.TwoSideEnabled) ||
-       (ctx->FragmentProgram._Current && ctx->FragmentProgram._Current->Base.InputsRead & (1 << FRAG_ATTRIB_FOGC)))
+       (ctx->VertexProgram._Current && ctx->VertexProgram.TwoSideEnabled))
       ind |= SS_TWOSIDE_BIT;
 
    /* We piggyback the two-sided stencil front/back determination on the