From f2dac6306f63c714a465bfb21abbf20d076166ed Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 12 Jan 2003 14:28:26 +0000 Subject: [PATCH] #ifdef out a bit more code that could cause compile problems on platforms that don't have all the latest opengl extensions. --- src/Main/main.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index cdf736e08..ef988412a 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -135,6 +135,7 @@ SG_USING_STD(endl); #include "fg_commands.hxx" +#ifdef FG_EXPERIMENTAL_POINT_LIGHTING #ifdef WIN32 typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC)(GLenum pname, GLfloat param); @@ -152,6 +153,7 @@ SG_USING_STD(endl); OpenGLFuncExt glPointParameterfEXT = 0; OpenGLFuncExtv glPointParameterfvEXT = 0; #endif +#endif float default_attenuation[3] = {1.0, 0.0, 0.0}; //Required for using GL_extensions -- 2.39.5