From 4c2e97be18d382115571cb21669b2f3fc69fe2fa Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 24 Oct 2002 14:05:40 +0000 Subject: [PATCH] Default to experimental point lighting disabled. --- src/Main/main.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index e74b57d7d..4c402c8d3 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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) ;