mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
use NEGATE_X/Y/Z/W tokens
This commit is contained in:
parent
846969917e
commit
5ea37f591a
1 changed files with 4 additions and 4 deletions
|
|
@ -304,7 +304,7 @@ _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended)
|
|||
if (!extended)
|
||||
s[i++] = '.';
|
||||
|
||||
if (negateBase & 0x1)
|
||||
if (negateBase & NEGATE_X)
|
||||
s[i++] = '-';
|
||||
s[i++] = swz[GET_SWZ(swizzle, 0)];
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended)
|
|||
s[i++] = ',';
|
||||
}
|
||||
|
||||
if (negateBase & 0x2)
|
||||
if (negateBase & NEGATE_Y)
|
||||
s[i++] = '-';
|
||||
s[i++] = swz[GET_SWZ(swizzle, 1)];
|
||||
|
||||
|
|
@ -320,7 +320,7 @@ _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended)
|
|||
s[i++] = ',';
|
||||
}
|
||||
|
||||
if (negateBase & 0x4)
|
||||
if (negateBase & NEGATE_Z)
|
||||
s[i++] = '-';
|
||||
s[i++] = swz[GET_SWZ(swizzle, 2)];
|
||||
|
||||
|
|
@ -328,7 +328,7 @@ _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended)
|
|||
s[i++] = ',';
|
||||
}
|
||||
|
||||
if (negateBase & 0x8)
|
||||
if (negateBase & NEGATE_W)
|
||||
s[i++] = '-';
|
||||
s[i++] = swz[GET_SWZ(swizzle, 3)];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue