]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/main.cxx
set /sim/fg-current to current working directory; getcwd() is defined in
[flightgear.git] / src / Main / main.cxx
index cd5bba53a2a74ca409bb926a92105e206fbe15f0..ffb8d499bfb9a631e06135eb01c0b861b58d2635 100644 (file)
@@ -603,6 +603,9 @@ static void fgMainLoop( void ) {
 // then on.
 
 static void fgIdleFunction ( void ) {
+    // Some intialization requires a valid graphics context, in
+    // particular that of plib. Boo, hiss!
+    fgMakeCurrent();
     if ( idle_state == 0 ) {
         idle_state++;