mesa: fix saturation logic in emit_texenv()
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 17:14:16 +0000 (11:14 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 17:14:16 +0000 (11:14 -0600)
commit2241665dc6d77a992edfc49a9d9d9ed8d1b52e60
treeae64cae44527d1628ee420493e2a831e7896779a
parent6bf86681f5903a06f98cc32ddf5715706de97c4a
mesa: fix saturation logic in emit_texenv()

We need to clamp/saturate after each texenv stage, not just the last one.
Fixes glean texEnv failure for softpipe (and probably other fragment program-
based drivers).
src/mesa/main/texenvprogram.c