mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 12:50:25 +01:00
r5xx: Enable fog options.
This uses fog HW instead of fragment programs. If it breaks you, let me know!
This commit is contained in:
parent
e438827dec
commit
12e84a8b84
1 changed files with 8 additions and 0 deletions
|
|
@ -2622,6 +2622,14 @@ static void r500SetupPixelShader(r300ContextPtr rmesa)
|
|||
}
|
||||
code = &fp->code;
|
||||
|
||||
if (fp->mesa_program.FogOption != GL_NONE) {
|
||||
/* Enable HW fog.
|
||||
* (Anybody sane remembered to set glFog() opts first! */
|
||||
ctx->Fog.Enabled = GL_TRUE;
|
||||
ctx->Fog.Mode = fp->mesa_program.FogOption;
|
||||
r300SetFogState(ctx, GL_TRUE);
|
||||
}
|
||||
|
||||
r300SetupTextures(ctx);
|
||||
|
||||
R300_STATECHANGE(rmesa, fp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue