mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Use an unique opengl context
This commit is contained in:
@@ -339,13 +339,13 @@ void GLToolbar::do_action(unsigned int item_id)
|
||||
item->set_state(GLToolbarItem::Hover);
|
||||
|
||||
m_parent.render();
|
||||
item->do_action(m_parent.widget());
|
||||
item->do_action(m_parent.get_wxglcanvas());
|
||||
}
|
||||
else
|
||||
{
|
||||
item->set_state(GLToolbarItem::HoverPressed);
|
||||
m_parent.render();
|
||||
item->do_action(m_parent.widget());
|
||||
item->do_action(m_parent.get_wxglcanvas());
|
||||
if (item->get_state() != GLToolbarItem::Disabled)
|
||||
{
|
||||
// the item may get disabled during the action, if not, set it back to hover state
|
||||
|
||||
Reference in New Issue
Block a user