Skip to content

Commit

Permalink
fix: ON_Material::MaxShine is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 16, 2021
1 parent 5d617be commit eaefb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opennurbs_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ void ON_GL( const ON_Material* pMat )
ON_GL( pMat->Diffuse(), alpha, diffuse );
ON_GL( pMat->Specular(), alpha, specular );
ON_GL( pMat->Emission(), alpha, emission );
GLint shine = (GLint)(128.0*(pMat->Shine() / ON_Material::MaxShine()));
GLint shine = (GLint)(128.0*(pMat->Shine() / ON_Material::MaxShine));
if ( shine == 0 ) {
specular[0]=specular[1]=specular[2]=(GLfloat)0.0;
}
Expand Down

0 comments on commit eaefb63

Please sign in to comment.