Follow-up of 17a6b696e7 -> Fixed missing imgui window size initialization

This commit is contained in:
Enrico Turri 2020-01-29 15:40:56 +01:00
parent da3cb30b7c
commit e679bcced6

View File

@ -1717,9 +1717,7 @@ void GLCanvas3D::render()
if (m_camera.requires_zoom_to_bed)
{
zoom_to_bed();
#if !ENABLE_6DOF_CAMERA
_resize((unsigned int)cnv_size.get_width(), (unsigned int)cnv_size.get_height());
#endif // !ENABLE_6DOF_CAMERA
m_camera.requires_zoom_to_bed = false;
}