mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
This commit is contained in:
commit
6559eaef59
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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