mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 19:57:55 -06:00
3rd attempt to fix opengl on ubuntu
This commit is contained in:
parent
23d10fdadc
commit
8db4fdc24c
8 changed files with 58 additions and 45 deletions
|
@ -251,15 +251,15 @@ bool GLCanvas3DManager::init(wxGLCanvas* canvas)
|
|||
// m_current = nullptr;
|
||||
// return false;
|
||||
//}
|
||||
//
|
||||
//void GLCanvas3DManager::set_active(wxGLCanvas* canvas, bool active)
|
||||
//{
|
||||
// CanvasesMap::iterator it = _get_canvas(canvas);
|
||||
// if (it != m_canvases.end())
|
||||
// it->second->set_active(active);
|
||||
//}
|
||||
//#################################################################################################################
|
||||
|
||||
void GLCanvas3DManager::set_active(wxGLCanvas* canvas, bool active)
|
||||
{
|
||||
CanvasesMap::iterator it = _get_canvas(canvas);
|
||||
if (it != m_canvases.end())
|
||||
it->second->set_active(active);
|
||||
}
|
||||
|
||||
void GLCanvas3DManager::set_as_dirty(wxGLCanvas* canvas)
|
||||
{
|
||||
CanvasesMap::iterator it = _get_canvas(canvas);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue