]> git.mxchange.org Git - flightgear.git/commitdiff
Oops missed some more usage of opengl extensions that may not be on everyone's systems.
authorcurt <curt>
Mon, 6 Jan 2003 21:43:59 +0000 (21:43 +0000)
committercurt <curt>
Mon, 6 Jan 2003 21:43:59 +0000 (21:43 +0000)
src/Main/main.cxx

index 32282ae8e0b6073ba789f848bbad275cd762f1af..cdf736e08686acecd6e762b6c620a00b0b25be12 100644 (file)
@@ -1594,6 +1594,7 @@ static bool fgMainInit( int argc, char **argv ) {
     glTexEnvf( GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, -0.5 ) ;
 #endif
 
+#ifdef FG_EXPERIMENTAL_POINT_LIGHTING
             // get the address of our OpenGL extensions
     if ( fgGetBool("/sim/rendering/distance-attenuation") )
     {
@@ -1609,6 +1610,7 @@ static bool fgMainInit( int argc, char **argv ) {
             glXGetProcAddressARB((GLubyte *)"glPointParameterfvEXT");
 #endif
    }
+#endif
 
     // based on the requested presets, calculate the true starting
     // lon, lat