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:
parent
4786923838
commit
0bc5a813a8
1 changed files with 0 additions and 11 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue