]> git.mxchange.org Git - flightgear.git/commitdiff
Default to experimental point lighting disabled.
authorcurt <curt>
Thu, 24 Oct 2002 14:05:40 +0000 (14:05 +0000)
committercurt <curt>
Thu, 24 Oct 2002 14:05:40 +0000 (14:05 +0000)
src/Main/main.cxx

index e74b57d7dae9c03fd47d36b4d1f23eaf19330fb4..4c402c8d33526d4942273d75239b46125a371b46 100644 (file)
@@ -741,14 +741,15 @@ void fgRenderFrame() {
 
 #ifdef FG_EXPERIMENTAL_LIGHTING
         // Enable states for drawing points with GL_extension
+        glEnable(GL_POINT_SMOOTH);
+
        if (glutExtensionSupported("GL_EXT_point_parameters")) {
-            glEnable(GL_POINT_SMOOTH);
             float quadratic[3] = {1.0, 0.001, 0.0000001};
             // makes the points fade as they move away
             glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quadratic);
             glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0); 
-            glPointSize(2.0);
        }
+        glPointSize(2.0);
 
         // blending function for runway lights
         glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) ;