]> git.mxchange.org Git - flightgear.git/commitdiff
Revert "Ensure immediate canvas update inside GUI windows."
authorThomas Geymayer <tomgey@gmail.com>
Mon, 11 Mar 2013 20:24:40 +0000 (21:24 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 11 Mar 2013 20:24:40 +0000 (21:24 +0100)
This reverts commit 07f01bd7344b261ccf304d2583276ca72e381378.

We don't need this anymore as there is now a proper fix
in SimGear.

src/Canvas/window.cxx

index 80ef5677e9e34f5f64c04dd1a1e3a8f68ad4e3ba..d0d72f509077262f9346908178e587b8b6ed2dc0 100644 (file)
@@ -79,17 +79,6 @@ namespace canvas
         _capture_events = node->getBoolValue();
       else
         handled = false;
-
-      // Ensure canvas is redrawn before the window is displayed after it has
-      // been hidden. We can't rely on the cull callback as it gets called too
-      // late (GUI camera is attached as POST_RENDER whereas canvas contents are
-      // rendered during PRE_RENDER).
-      if( node->getNameString() == "visible" && node->getBoolValue() )
-      {
-        simgear::canvas::CanvasPtr canvas = getCanvas().lock();
-        if( canvas )
-          canvas->enableRendering();
-      }
     }
 
     if( !handled )