From: curt Date: Sun, 12 Jan 2003 14:28:26 +0000 (+0000) Subject: #ifdef out a bit more code that could cause compile problems on platforms X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f2dac6306f63c714a465bfb21abbf20d076166ed;p=flightgear.git #ifdef out a bit more code that could cause compile problems on platforms that don't have all the latest opengl extensions. --- 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