projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9995927
)
swrast: fix cube face selection
author
Brian Paul
<brianp@vmware.com>
Mon, 21 Sep 2009 14:32:43 +0000
(08:32 -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.
This is the same as Michal's softpipe fix.
src/mesa/swrast/s_texfilter.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_texfilter.c
b/src/mesa/swrast/s_texfilter.c
index dd59314cd9671a5d90ea5a5ac251b1b386135bcb..ea749c01137ea185bd02185e7efed05e9e9ab159 100644
(file)
--- a/
src/mesa/swrast/s_texfilter.c
+++ b/
src/mesa/swrast/s_texfilter.c
@@
-1863,7
+1863,7
@@
choose_cube_face(const struct gl_texture_object *texObj,
GLuint face;
GLfloat sc, tc, ma;
- if (arx >
ary && arx >
arz) {
+ if (arx >
= ary && arx >=
arz) {
if (rx >= 0.0F) {
face = FACE_POS_X;
sc = -rz;
@@
-1877,7
+1877,7
@@
choose_cube_face(const struct gl_texture_object *texObj,
ma = arx;
}
}
- else if (ary >
arx && ary >
arz) {
+ else if (ary >
= arx && ary >=
arz) {
if (ry >= 0.0F) {
face = FACE_POS_Y;
sc = rx;