]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Thu, 1 Mar 2007 18:12:48 +0000 (18:12 +0000)
committerfrohlich <frohlich>
Thu, 1 Mar 2007 18:12:48 +0000 (18:12 +0000)
src/Main/renderer.cxx: Guard the OpenGL state around pui a bit more

src/Main/renderer.cxx

index cfbf94c1fb7d1e6ed5ede17d1d1a8ef3e490f8cf..237435c97dcadcf309c11a1de219f3445049f460 100644 (file)
@@ -129,12 +129,18 @@ public:
     state.setClientActiveTextureUnit(0);
     state.disableAllVertexArrays();
 
+    glPushAttrib(GL_ALL_ATTRIB_BITS);
+    glPushClientAttrib(~0u);
+
     if((fgGetBool("/sim/atc/enabled"))
        || (fgGetBool("/sim/ai-traffic/enabled")))
       globals->get_ATC_display()->update(delta_time_sec, state);
 
     puDisplay();
 
+    glPopClientAttrib();
+    glPopAttrib();
+
     // Fade out the splash screen over the first three seconds.
     double t = globals->get_sim_time_sec();
     if (t <= 2.5) {