projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45700ac
)
lower clamp bound for UNCLAMPED_FLOAT_TO_SHORT() is -1
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 00:46:14 +0000
(18:46 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 00:46:14 +0000
(18:46 -0600)
src/mesa/pipe/softpipe/sp_surface.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_surface.c
b/src/mesa/pipe/softpipe/sp_surface.c
index
02a072f
..
292676a
100755
(executable)
--- 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) )