From 0ae19cffe69c325fce0a3899fc223a0c19c955a8 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sat, 13 May 2023 22:40:50 +0200 Subject: [PATCH] apparently & is not defined on bvec4 why does this even compile on Intel and Nvidia? --- src/GPU3D_Compute_shaders.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GPU3D_Compute_shaders.h b/src/GPU3D_Compute_shaders.h index dccbe6ee..39858a4a 100644 --- a/src/GPU3D_Compute_shaders.h +++ b/src/GPU3D_Compute_shaders.h @@ -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;