forked from bartvdbraak/blender
Fix more undefined behavior in tangent space computation
Ref D6677
This commit is contained in:
parent
14ccda75f6
commit
a075f45526
@ -1392,7 +1392,7 @@ static void QuickSort(int *pSortBuffer, int iLeft, int iRight, unsigned int uSee
|
||||
|
||||
// Random
|
||||
unsigned int t = uSeed & 31;
|
||||
t = (uSeed << t) | (uSeed >> (32 - t));
|
||||
t = rotl(uSeed, t);
|
||||
uSeed = uSeed + t + 3;
|
||||
// Random end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user