NEW: disable dgpu by default
jira: STUDIO-10068 / STUDIO-9387 Change-Id: Idee00cb0963d035aa5d70d6796482543cea3061d
This commit is contained in:
parent
e288462439
commit
52d6e2f46e
|
@ -199,7 +199,7 @@ void AppConfig::set_defaults()
|
|||
set_bool("enable_multi_machine", false);
|
||||
|
||||
if (get("prefer_to_use_dgpu").empty())
|
||||
set_bool("prefer_to_use_dgpu", true);
|
||||
set_bool("prefer_to_use_dgpu", false);
|
||||
|
||||
if (get("show_3d_navigator").empty())
|
||||
set_bool("show_3d_navigator", true);
|
||||
|
|
|
@ -56,6 +56,10 @@ bool View3D::init(wxWindow* parent, Bed3D& bed, Model* model, DynamicPrintConfig
|
|||
if (!Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 /* disable wxTAB_TRAVERSAL */))
|
||||
return false;
|
||||
|
||||
const auto& p_ogl_manager = wxGetApp().get_opengl_manager();
|
||||
if (!p_ogl_manager) {
|
||||
return false;
|
||||
}
|
||||
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
||||
if (m_canvas_widget == nullptr)
|
||||
return false;
|
||||
|
@ -248,6 +252,11 @@ bool Preview::init(wxWindow* parent, Bed3D& bed, Model* model)
|
|||
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
||||
#endif // _WIN32
|
||||
|
||||
const auto& p_ogl_manager = wxGetApp().get_opengl_manager();
|
||||
if (!p_ogl_manager) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
||||
if (m_canvas_widget == nullptr)
|
||||
return false;
|
||||
|
@ -792,6 +801,11 @@ bool AssembleView::init(wxWindow* parent, Bed3D& bed, Model* model, DynamicPrint
|
|||
if (!Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 /* disable wxTAB_TRAVERSAL */))
|
||||
return false;
|
||||
|
||||
const auto& p_ogl_manager = wxGetApp().get_opengl_manager();
|
||||
if (!p_ogl_manager) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
||||
if (m_canvas_widget == nullptr)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue