Work around a problem in certain NVidia adapters hat don't support fgPushAttrib(FG_FOG_BIT)
This commit is contained in:
parent
99a85c780c
commit
be863ee240
1 changed files with 6 additions and 0 deletions
|
@ -736,6 +736,12 @@ void fgRenderFrame() {
|
||||||
|
|
||||||
// return to the desired diffuse color
|
// return to the desired diffuse color
|
||||||
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );
|
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );
|
||||||
|
|
||||||
|
// FIXME: This should not be needed, but at this time (08/15/2003)
|
||||||
|
// certain NVidia drivers don't seem to implement
|
||||||
|
// fgPushAttrib(FG_FOG_BIT) properly. The result is that
|
||||||
|
// there is not fog when looking at the sun.
|
||||||
|
glFogf ( GL_FOG_DENSITY, fog_exp2_density );
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw the ssg scene
|
// draw the ssg scene
|
||||||
|
|
Loading…
Add table
Reference in a new issue