Commit 9f14f881 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fixGLShininess' into 'master'

fixed setting shininess

Closes OpenFlipper-Free#138

See merge request !46
parents 1275ee2d 8994e8fd
......@@ -764,7 +764,7 @@ void GLState::set_shininess(float _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