Use the glPointParameter function pointer rather than the function itself
This commit is contained in:
parent
82ba3ebbde
commit
1dea70fffa
1 changed files with 3 additions and 3 deletions
|
@ -453,8 +453,8 @@ static int fgLightsPredraw( ssgEntity *e ) {
|
||||||
#if 0
|
#if 0
|
||||||
if (glPointParameterIsSupported) {
|
if (glPointParameterIsSupported) {
|
||||||
static float quadratic[3] = {1.0, 0.01, 0.0001};
|
static float quadratic[3] = {1.0, 0.01, 0.0001};
|
||||||
glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quadratic);
|
glPointParameterfvProc(GL_DISTANCE_ATTENUATION_EXT, quadratic);
|
||||||
glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
|
glPointParameterfProc(GL_POINT_SIZE_MIN_EXT, 1.0);
|
||||||
glPointSize(4.0);
|
glPointSize(4.0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -465,7 +465,7 @@ static int fgLightsPostdraw( ssgEntity *e ) {
|
||||||
#if 0
|
#if 0
|
||||||
if (glPointParameterIsSupported) {
|
if (glPointParameterIsSupported) {
|
||||||
static float default_attenuation[3] = {1.0, 0.0, 0.0};
|
static float default_attenuation[3] = {1.0, 0.0, 0.0};
|
||||||
glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT,
|
glPointParameterfvProc(GL_DISTANCE_ATTENUATION_EXT,
|
||||||
default_attenuation);
|
default_attenuation);
|
||||||
glPointSize(1.0);
|
glPointSize(1.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue