Tie the sun halo texture to point sprites.
This commit is contained in:
parent
d1ad73558f
commit
c90596b8ec
1 changed files with 4 additions and 1 deletions
|
@ -230,8 +230,11 @@ FGRenderer::init( void ) {
|
||||||
if ( SGIsOpenGLExtensionSupported("GL_ARB_point_sprite") ||
|
if ( SGIsOpenGLExtensionSupported("GL_ARB_point_sprite") ||
|
||||||
SGIsOpenGLExtensionSupported("GL_NV_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_SPRITE);
|
||||||
glEnable(GL_POINT_SMOOTH);
|
// glEnable(GL_POINT_SMOOTH);
|
||||||
glPointSpriteIsSupported = true;
|
glPointSpriteIsSupported = true;
|
||||||
}
|
}
|
||||||
glEnable(GL_LINE_SMOOTH);
|
glEnable(GL_LINE_SMOOTH);
|
||||||
|
|
Loading…
Add table
Reference in a new issue