mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-17 07:16:51 +08:00
GLCanvas3D: Fix an assert in _set_current()
This commit is contained in:
parent
3ffd43b2ce
commit
d97037e246
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user