From b0d12281c8b94cb57a2575d94639cb73204aa9bf Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 21 Oct 2002 03:22:27 +0000 Subject: [PATCH] Minor tweak to avoid some compile errors people are seeing with the glPointParameterExt. --- src/Main/main.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index aaf124c9a..e74b57d7d 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -135,7 +135,8 @@ SG_USING_STD(endl); // #define FG_EXPERIMENTAL_LIGHTING -#ifdef WIN32 +#ifdef FG_EXPERIMENTAL_LIGHTING +# ifdef WIN32 typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC)(GLenum pname, GLfloat param); typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC)(GLenum pname, @@ -143,7 +144,7 @@ SG_USING_STD(endl); PFNGLPOINTPARAMETERFEXTPROC glPointParameterfEXT = 0; PFNGLPOINTPARAMETERFVEXTPROC glPointParameterfvEXT = 0; -#elif linux +# elif linux #include typedef void (* OpenGLFuncExt)(GLenum pname, GLfloat param); @@ -151,6 +152,7 @@ SG_USING_STD(endl); OpenGLFuncExt glPointParameterfEXT = 0; OpenGLFuncExtv glPointParameterfvEXT = 0; +# endif #endif float default_attenuation[3] = {1.0, 0.0, 0.0}; @@ -745,7 +747,7 @@ void fgRenderFrame() { // makes the points fade as they move away glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quadratic); glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0); - glPointSize(4.0); + glPointSize(2.0); } // blending function for runway lights