Bug fixed:	Lighting of simulator messed up in OpenSG and OSG applications.
Bug fixed:	Lighting of simulator messed up in OpenSG and OSG applications.

This fix is more of a workaround.

The problem with lighting in OpenSG and OSG applications was/is that when the scenegraph is finished rendering, the renderer does not leave the OpenGL
lighting state the same way that it was when rendering the scene graph.  In fact, lighting is actually disabled entirely.

So this change just says that if lighting is off when coming into drawing the simulator, then don't try to use it to draw the simulator because it is
probably completely wrong.


git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@9645 08b38cba-cd3b-11de-854e-f91c5b6e4272

godbyk/vrjuggler-upstream-old,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,godbyk/vrjuggler-upstream-old,LiuKeHua/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,vrjuggler/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler