Fix syntax that doesn't compile on linux and used smart glm::max instruction