From: frohlich Date: Thu, 1 Mar 2007 18:12:48 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b230c0a1e8b1251c0cb0c4b197ed09d0d448691f;p=flightgear.git Modified Files: src/Main/renderer.cxx: Guard the OpenGL state around pui a bit more --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index cfbf94c1f..237435c97 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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) {