mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
simplify update two-side lighting test (follow-on to previous front/back-face changes)
This commit is contained in:
parent
441bab8f17
commit
256115bd5e
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue