this seems to fix #9173: replace MAX by better suited fmaxf in globaltonemap