1
0
Fork 0

Revert "Ensure immediate canvas update inside GUI windows."

This reverts commit 07f01bd734.

We don't need this anymore as there is now a proper fix
in SimGear.
This commit is contained in:
Thomas Geymayer 2013-03-11 21:24:40 +01:00
parent 4786923838
commit 0bc5a813a8

View file

@ -79,17 +79,6 @@ namespace canvas
_capture_events = node->getBoolValue(); _capture_events = node->getBoolValue();
else else
handled = false; 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 ) if( !handled )