4201{
4202 GLCanvas3D* canvas =
m_frame.m_plater->canvas3D();
4203#ifdef __WXGTK__
4204
4205
4206 gtk_widget_realize(canvas->get_wxglcanvas()->GetHandle());
4207#endif
4208 if (!canvas->make_current_for_postinit()) {
4209
4210 BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << ": cannot make the GL context current on the hidden canvas";
4212 return false;
4213 }
4215 case 0:
4216 m_failed = !wxGetApp().init_opengl();
4217 break;
4218 case 1: {
4219 const Size size = canvas->get_canvas_size();
4220 wxGetApp().imgui()->set_display_size(float(std::max(1, size.get_width())), float(std::max(1, size.get_height())));
4221 canvas->set_imgui_scaling();
4222
4223 wxGetApp().imgui()->new_frame();
4224 wxGetApp().imgui()->end_frame();
4225 break;
4226 }
4227 case 2:
4228
4229 if (
m_frame.m_plater->get_partplate_list().load_next_plate_texture())
4230 return true;
4231 break;
4232 case 3:
4234 break;
4235 default:
4236
4237 m_frame.m_plater->get_partplate_list().load_icon_textures();
4238 return false;
4239 }
4242}
int m_step
Definition MainFrame.hpp:169
bool m_failed
Definition MainFrame.hpp:170