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,8 +644,6 @@ void DrawPoints()
if(GetHintParami(HNPPointSmooth)>0) glEnable(GL_POINT_SMOOTH);
else glDisable(GL_POINT_SMOOTH);
glPointSize(GetHintParamf(HNPPointSize));
if (glPointParameterfv)
{
if(GetHintParami(HNPPointDistanceAttenuation)>0)
{
float camDist = (float)CameraDistance();
@ -659,7 +657,6 @@ void DrawPoints()
float quadratic[] = { 1.0f, 0.0f, 0.0f};
glPointParameterfv( GL_POINT_DISTANCE_ATTENUATION, quadratic );
glPointSize(GetHintParamf(HNPPointSize));
}
}
if(m->vn!=(int)m->vert.size())