[WINED3D] FFS has to return correct values on both msvc and gcc (#8625)

accordingly to
https://www.man7.org/linux/man-pages/man3/ffs.3.html
we have been doing this wrong for awhile and it causes opengl to freeze
This commit is contained in:
Justin Miller
2026-01-29 22:30:34 +00:00
committed by GitHub
parent 8c9039bbd4
commit 0203d1778a
+1 -1
View File
@@ -354,7 +354,7 @@ ffs(int mask)
{
long index;
if (_BitScanForward(&index, mask) == 0) return 0;
return index;
return index + 1;
}
#else
#define ffs __builtin_ffs