Fix #120806: Clamp gamma when passed to OCIO #120807

Open
YimingWu wants to merge 1 commits from ChengduLittleA/blender:fix-120806 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
YimingWu 3aa699a8d3 Fix #120806: Clamp gamma when passed to OIIO
Enabling vector scope/histogram when gamma is set too low will crash
OIIO, the exponent value (1/gamma) is limited to 100 by OIIO, so
clamping this value before passing to OIIO to prevent such error.
2024-04-19 10:02:03 +08:00