GLCanvas3d::on_render(): if not intialized yet,

Call render directly, so it gets initialized immediately, not from On Idle handler.
This commit is contained in:
bubnikv 2019-01-30 19:48:26 +01:00
parent 7dbda0243e
commit 991632add5

View File

@ -5657,7 +5657,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
void GLCanvas3D::on_paint(wxPaintEvent& evt)
{
m_dirty = true;
if (m_initialized)
m_dirty = true;
else
// Call render directly, so it gets initialized immediately, not from On Idle handler.
this->render();
}
void GLCanvas3D::on_key_down(wxKeyEvent& evt)