From eaefb63a5b4e73cf76bcb7118f266596b4a34bde Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 15 Nov 2021 21:21:39 -0600 Subject: [PATCH] fix: ON_Material::MaxShine is not a function --- opennurbs_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opennurbs_gl.cpp b/opennurbs_gl.cpp index c47e625a..a649ddec 100644 --- a/opennurbs_gl.cpp +++ b/opennurbs_gl.cpp @@ -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; }