diff options
author | Keith Whitwell <[email protected]> | 2005-05-11 16:30:02 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-05-11 16:30:02 +0000 |
commit | 1e5772f0ba7300e19d1980c0e30e358e71c5c685 (patch) | |
tree | 3a583478bc6d1a4f9e402ee869f6e44aaae8cf80 /src/mesa/swrast/s_context.c | |
parent | ac6728d2d9208c4e8147b1ebfde50efdf37a8428 (diff) |
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 00c4ae4bc9c..4a4d1b880a3 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -158,7 +158,7 @@ _swrast_update_fog_hint( GLcontext *ctx ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); swrast->_PreferPixelFog = (!swrast->AllowVertexFog || - ctx->FragmentProgram._Active || + ctx->FragmentProgram._Enabled || /* not _Active! */ (ctx->Hint.Fog == GL_NICEST && swrast->AllowPixelFog)); } |