Added change removed by mistale in 02163f7f9648b81ad1dc59a4ad6c1a5c55c02a50

This commit is contained in:
Enrico Turri 2019-03-08 10:42:09 +01:00
parent 513256649e
commit 862700ab46

View file

@ -4118,8 +4118,11 @@ void GLCanvas3D::render()
if (m_canvas == nullptr)
return;
#ifndef __WXMAC__
// on Mac this check causes flickering when changing view
if (!_is_shown_on_screen())
return;
#endif // __WXMAC__
// ensures this canvas is current and initialized
if (!_set_current() || !_3DScene::init(m_canvas))