mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
GLCanvas3D: Fix an assert in _set_current()
This commit is contained in:
@@ -3299,8 +3299,9 @@ bool GLCanvas3D::_init_toolbar()
|
|||||||
|
|
||||||
bool GLCanvas3D::_set_current()
|
bool GLCanvas3D::_set_current()
|
||||||
{
|
{
|
||||||
if ((m_canvas != nullptr) && (m_context != nullptr))
|
if (_is_shown_on_screen() && (m_context != nullptr)) {
|
||||||
return m_canvas->SetCurrent(*m_context);
|
return m_canvas->SetCurrent(*m_context);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user