simplify update two-side lighting test (follow-on to previous front/back-face changes)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user