mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user