projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978bca8
)
util: Single precision constants.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 10 Jun 2009 14:39:47 +0000
(15:39 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 10 Jun 2009 14:39:47 +0000
(15:39 +0100)
src/gallium/auxiliary/util/u_gen_mipmap.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_gen_mipmap.c
b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 6fa13a8ce116b8a184b8b6374a3425751a422e6e..ca797486a0e023f9e623c4ddee123f556fcc4d01 100644
(file)
--- a/
src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/
src/gallium/auxiliary/util/u_gen_mipmap.c
@@
-1385,7
+1385,7
@@
set_vertex_data(struct gen_mipmap_state *ctx,
* Not +/-1 to avoid cube face selection ambiguity near the edges,
* though that can still sometimes happen with this scale factor...
*/
- const float scale = 0.9999;
+ const float scale = 0.9999
f
;
const float sc = (2.0f * st[i][0] - 1.0f) * scale;
const float tc = (2.0f * st[i][1] - 1.0f) * scale;