Before this fix, the GCC specific MSB function returned the number of leading zero bits in the parameter value. With this change, the number of trailing zero bits is returned instead. I am not entirely sure if this fix is correct, because I could not find a clear reference about what findMSB in GLSL is really supposed to return with some concrete input value. At least the result is now consistent with the GLM_ARCH_PURE implementation of glm::findMSB.master
parent
da530ac46e
commit
daa51e42bb
1 changed files with 5 additions and 1 deletions
Loading…
Reference in New Issue