]> git.mxchange.org Git - flightgear.git/commitdiff
Tie the sun halo texture to point sprites.
authorehofman <ehofman>
Tue, 31 Jan 2006 15:14:45 +0000 (15:14 +0000)
committerehofman <ehofman>
Tue, 31 Jan 2006 15:14:45 +0000 (15:14 +0000)
src/Main/renderer.cxx

index edc4f7142e36fa3a8bfc8237c15e17840f19307f..af1f6a66d550eeb28206e40e7144c0f56a03003e 100644 (file)
@@ -230,8 +230,11 @@ FGRenderer::init( void ) {
     if ( SGIsOpenGLExtensionSupported("GL_ARB_point_sprite") ||
          SGIsOpenGLExtensionSupported("GL_NV_point_sprite") )
     {
+        GLuint handle = thesky->get_sun_texture_id();
+        glBindTexture ( GL_TEXTURE_2D, handle ) ;
+        glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_TRUE);
         glEnable(GL_POINT_SPRITE);
-        glEnable(GL_POINT_SMOOTH);
+        // glEnable(GL_POINT_SMOOTH);
         glPointSpriteIsSupported = true;
     }
     glEnable(GL_LINE_SMOOTH);