mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08:00
813c95f4ca
A boolean comparison that involves at least one vector type will result in a boolean vector (not a boolean scalar) for Direct3D and Metal, whereas OpenGL returns a scalar boolean. To avoid unnecessary code complexity, use the "distance" function instead, which treats the color values as vectors and returns a non-zero value if they are any different, achieving the same result.