projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63e78b
)
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 20:56:10 +0000
(14:56 -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 6b1f934647540df1afb5f040ca9527ed0ff69b68..efe6f234740250a5653254e93606dea3836509cf 100644
(file)
--- a/
src/mesa/swrast/s_texfilter.c
+++ b/
src/mesa/swrast/s_texfilter.c
@@
-1862,7
+1862,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;
@@
-1876,7
+1876,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;