mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.
This commit is contained in:
parent
ac6728d2d9
commit
1e5772f0ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue