diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-18 16:12:23 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-18 16:24:19 -0700 |
commit | 256115bd5e6bb59f3019b52120ca804b7a5c00c0 (patch) | |
tree | a59ac34b0300c90143f6cbbf3828f637507d969b /src/mesa/swrast_setup | |
parent | 441bab8f171b0678303ff46fc79f236c349aafdb (diff) | |
download | external_mesa3d-256115bd5e6bb59f3019b52120ca804b7a5c00c0.zip external_mesa3d-256115bd5e6bb59f3019b52120ca804b7a5c00c0.tar.gz external_mesa3d-256115bd5e6bb59f3019b52120ca804b7a5c00c0.tar.bz2 |
simplify update two-side lighting test (follow-on to previous front/back-face changes)
Diffstat (limited to 'src/mesa/swrast_setup')
-rw-r--r-- | src/mesa/swrast_setup/ss_triangle.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 4817d23..5a0f1f2 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -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 |