From 24808d2de827f219b683ad46744a179ae25bc859 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Sat, 28 Oct 2017 14:30:38 -0200 Subject: Shared OpenGL context bug fixed --- Project/Workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Project/Workspace.cpp') diff --git a/Project/Workspace.cpp b/Project/Workspace.cpp index 0dc9cc7..485d350 100644 --- a/Project/Workspace.cpp +++ b/Project/Workspace.cpp @@ -42,12 +42,12 @@ // Workspace Workspace::Workspace() : WorkspaceBase(NULL) {} -Workspace::Workspace(wxWindow* parent, wxString name, wxStatusBar* statusBar) : WorkspaceBase(parent) +Workspace::Workspace(wxWindow* parent, wxString name, wxStatusBar* statusBar, wxGLContext* sharedGLContext) : WorkspaceBase(parent) { m_timer->Start(); m_name = name; m_statusBar = statusBar; - m_glContext = new wxGLContext(m_glCanvas); + m_glContext = new wxGLContext(m_glCanvas, sharedGLContext); m_camera = new Camera(); m_selectionRect = wxRect2DDouble(0, 0, 0, 0); -- cgit