From 1aa2c374e1b47aeab1a629e578e187b11e2e5576 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 5 Oct 2012 16:45:25 +0000 Subject: [PATCH] corrected useless test for an ancient opengl extension (glPointParameterfv). no more needed and creating problems to new compilers... --- wrap/gl/trimesh.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index 5d404040..b6f0becd 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -644,9 +644,7 @@ void DrawPoints() if(GetHintParami(HNPPointSmooth)>0) glEnable(GL_POINT_SMOOTH); else glDisable(GL_POINT_SMOOTH); glPointSize(GetHintParamf(HNPPointSize)); - if (glPointParameterfv) - { - if(GetHintParami(HNPPointDistanceAttenuation)>0) + if(GetHintParami(HNPPointDistanceAttenuation)>0) { float camDist = (float)CameraDistance(); float quadratic[] = { 0.0f, 0.0f, 1.0f/(camDist*camDist) , 0.0f }; @@ -660,7 +658,6 @@ void DrawPoints() glPointParameterfv( GL_POINT_DISTANCE_ATTENUATION, quadratic ); glPointSize(GetHintParamf(HNPPointSize)); } - } if(m->vn!=(int)m->vert.size()) {