simplify update two-side lighting test (follow-on to previous front/back-face changes)

This commit is contained in:
Brian
2007-12-18 16:12:23 -07:00
parent 441bab8f17
commit 256115bd5e

View File

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