apparently & is not defined on bvec4

why does this even compile on Intel and Nvidia?
This commit is contained in:
RSDuck 2023-05-13 22:40:50 +02:00
parent e7168ac563
commit 0ae19cffe6
1 changed files with 4 additions and 1 deletions

View File

@ -1568,7 +1568,10 @@ void main()
bvec4 polyIdMismatch = notEqual(uvec4(polyId), otherPolyId);
bvec4 nearer = lessThan(uvec4(depth.x), otherDepth);
if (any(polyIdMismatch & nearer))
if ((polyIdMismatch.x && nearer.x)
|| (polyIdMismatch.y && nearer.y)
|| (polyIdMismatch.z && nearer.z)
|| (polyIdMismatch.w && nearer.w))
{
color.x = ToonTable[polyId >> 3].b | (color.x & 0xFF000000U);
attr.x = (attr.x & 0xFFFFE0FFU) | 0x00001000U;