mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
swrast: fix cube face selection
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.
This commit is contained in:
parent
c63e78b3e5
commit
d504a7669d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue