mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 15:50:32 +01:00
need to clamp MAD for linear fog
This commit is contained in:
parent
921b008419
commit
1560de2c3c
1 changed files with 1 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog)
|
|||
inst->SrcReg[2].File = PROGRAM_STATE_VAR;
|
||||
inst->SrcReg[2].Index = fogPRefOpt;
|
||||
inst->SrcReg[2].Swizzle = SWIZZLE_Y;
|
||||
inst->SaturateMode = SATURATE_ZERO_ONE;
|
||||
inst++;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue