1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

GLCanvas3D: Fix an assert in _set_current()

This commit is contained in:
Vojtech Kral
2019-04-09 10:55:32 +02:00
parent 3ffd43b2ce
commit d97037e246
+2 -1
View File
@@ -3299,8 +3299,9 @@ bool GLCanvas3D::_init_toolbar()
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 false;
}