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) ;