Removed some redundant glLight() calls.
This commit is contained in:
parent
1c6ee6e030
commit
e85939a814
1 changed files with 3 additions and 3 deletions
|
@ -293,7 +293,7 @@ void fgInitVisuals( void ) {
|
||||||
|
|
||||||
glEnable( GL_LIGHTING );
|
glEnable( GL_LIGHTING );
|
||||||
glEnable( GL_LIGHT0 );
|
glEnable( GL_LIGHT0 );
|
||||||
glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec );
|
// glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec ); // done later with ssg
|
||||||
|
|
||||||
sgVec3 sunpos;
|
sgVec3 sunpos;
|
||||||
sgSetVec3( sunpos, l->sun_vec[0], l->sun_vec[1], l->sun_vec[2] );
|
sgSetVec3( sunpos, l->sun_vec[0], l->sun_vec[1], l->sun_vec[2] );
|
||||||
|
@ -451,8 +451,8 @@ void fgRenderFrame() {
|
||||||
fgReshape( fgGetInt("/sim/startup/xsize"),
|
fgReshape( fgGetInt("/sim/startup/xsize"),
|
||||||
fgGetInt("/sim/startup/ysize") );
|
fgGetInt("/sim/startup/ysize") );
|
||||||
|
|
||||||
// set the sun position
|
// set the sun position (done later with ssg calls)
|
||||||
glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec );
|
// glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec );
|
||||||
|
|
||||||
clear_mask = GL_DEPTH_BUFFER_BIT;
|
clear_mask = GL_DEPTH_BUFFER_BIT;
|
||||||
if ( fgGetBool("/sim/rendering/wireframe") ) {
|
if ( fgGetBool("/sim/rendering/wireframe") ) {
|
||||||
|
|
Loading…
Reference in a new issue