summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-08-26 19:00:00 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-05 18:01:35 +0200
commite7a566af0cfd7d6c3088b6d1b3630686958bbfd2 (patch)
treed1e52afc813f9aeac7dee9c0c37b702a5cee91c1
parent5e3c31316d68cb86e81795428baa95956e24ddd5 (diff)
mesa: clamp texels in the texenv program as required by ARB_texture_float
Changed in a later patch when ARB_color_buffer_float support is added.
-rw-r--r--src/mesa/main/texenvprogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 20f02cefe9..640d55da40 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -824,7 +824,7 @@ static struct ureg emit_texld( struct texenv_fragment_program *p,
{
struct prog_instruction *inst = emit_op( p, op,
dest, destmask,
- GL_FALSE, /* don't saturate? */
+ GL_TRUE, /* ARB_texture_float requires saturation here */
coord, /* arg 0? */
undef,
undef);