mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 19:20:38 +01:00
r5xx: Final fog option fix.
Is there some kind of git hook we could use to keep me from committing after like 10PM or so?
This commit is contained in:
parent
7855ea2af2
commit
a667d67cd6
1 changed files with 4 additions and 2 deletions
|
|
@ -2623,10 +2623,12 @@ static void r500SetupPixelShader(r300ContextPtr rmesa)
|
|||
if (fp->mesa_program.FogOption != GL_NONE) {
|
||||
/* Enable HW fog. Try not to squish GL context.
|
||||
* (Anybody sane remembered to set glFog() opts first!) */
|
||||
r300SetFogState(ctx, GL_TRUE);
|
||||
ctx->Fog.Mode = fp->mesa_program.FogOption;
|
||||
r300Fogfv(ctx, GL_FOG_MODE, NULL);
|
||||
r300SetFogState(ctx, GL_TRUE);
|
||||
}
|
||||
} else
|
||||
/* Make sure HW is matching GL context. */
|
||||
r300SetFogState(ctx, ctx->Fog.Enabled);
|
||||
|
||||
r300SetupTextures(ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue