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:
parent
7dbda0243e
commit
991632add5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user