projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
077e3de
)
softpipe: Fix cube face selection.
author
Brian Paul
<brianp@vmware.com>
Mon, 21 Sep 2009 14:34:00 +0000
(08:34 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 21 Sep 2009 14:36:05 +0000
(08:36 -0600)
If arx and ary are equal, we still want to choose from one of them,
and not arz.
(cherry picked from commit
de685b37a91bc95dd4093a44a49b7b47385b1f7c
)
src/gallium/drivers/softpipe/sp_tex_sample.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tex_sample.c
b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 5de358dae9395ded753d730dfc337074f36fa481..81793ef73642c0327c397e3087f040063439802c 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/
src/gallium/drivers/softpipe/sp_tex_sample.c
@@
-464,7
+464,7
@@
choose_cube_face(float rx, float ry, float rz, float *newS, float *newT)
unsigned face;
float sc, tc, ma;
- if (arx >
ary && arx >
arz) {
+ if (arx >
= ary && arx >=
arz) {
if (rx >= 0.0F) {
face = PIPE_TEX_FACE_POS_X;
sc = -rz;
@@
-478,7
+478,7
@@
choose_cube_face(float rx, float ry, float rz, float *newS, float *newT)
ma = arx;
}
}
- else if (ary >
arx && ary >
arz) {
+ else if (ary >
= arx && ary >=
arz) {
if (ry >= 0.0F) {
face = PIPE_TEX_FACE_POS_Y;
sc = rx;