corrected useless test for an ancient opengl extension (glPointParameterfv). no more needed and creating problems to new compilers...

This commit is contained in:
Paolo Cignoni 2012-10-05 16:45:25 +00:00
parent 2c68680c06
commit 1aa2c374e1
1 changed files with 1 additions and 4 deletions

View File

@ -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())
{