Commit 8994e8fd authored by Weizhen Huang's avatar Weizhen Huang

clamped shinines value to 128

parent 1275ee2d
......@@ -758,13 +758,13 @@ void GLState::set_overlay_color(const Vec4f& _col)
void GLState::set_shininess(float _shininess)
{
shininess_ = _shininess;
{
shininess_ = _shininess;
if (updateGL_ && compatibilityProfile_)
{
makeCurrent();
glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, _shininess);
glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, std::min(128.f, _shininess));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment