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:22:36 +0000 (11:22 -0600)
commit956e6c3978abe918348377cf05e5c92971e50d3f
tree4f22376e0f8a7366c843f5e3284b4ddc5077e4bb
parentaca8dbcaa692c5903ae73aacd6fe7272d23f0f03
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