summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-16 18:46:14 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-16 18:46:14 -0600
commit7db3cf8c48a3fb73cd742dbc02394f10027db9ed (patch)
tree5916d21fe652cef9ec5d7f35cb5a3466dc0a2ee9 /src/mesa/pipe
parent45700ac280ddd5e23c57763129257d7fba171d9d (diff)
lower clamp bound for UNCLAMPED_FLOAT_TO_SHORT() is -1
Diffstat (limited to 'src/mesa/pipe')
-rwxr-xr-xsrc/mesa/pipe/softpipe/sp_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.c b/src/mesa/pipe/softpipe/sp_surface.c
index 02a072fe9b..292676a302 100755
--- a/src/mesa/pipe/softpipe/sp_surface.c
+++ b/src/mesa/pipe/softpipe/sp_surface.c
@@ -47,7 +47,7 @@
#define SHORT_TO_FLOAT(S) ((2.0F * (S) + 1.0F) * (1.0F/65535.0F))
#define UNCLAMPED_FLOAT_TO_SHORT(us, f) \
- us = ( (short) ( CLAMP((f), 0.0, 1.0) * 32767.0F) )
+ us = ( (short) ( CLAMP((f), -1.0, 1.0) * 32767.0F) )