Modified Files:
src/Main/renderer.cxx: Guard the OpenGL state around pui a bit more
This commit is contained in:
parent
4232c116a3
commit
b230c0a1e8
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue