diff options
author | Thales Lima <thaleslima.ufu@gmail.com> | 2017-10-28 14:30:38 -0200 |
---|---|---|
committer | Thales Lima <thaleslima.ufu@gmail.com> | 2017-10-28 14:30:38 -0200 |
commit | 24808d2de827f219b683ad46744a179ae25bc859 (patch) | |
tree | 4968e6d2403b4fcc1cbcc41502c42e02633dfa83 /Project/Workspace.cpp | |
parent | 7043bf93567689f3b1304cc998c1fb09b7e0e357 (diff) | |
download | PSP.git-24808d2de827f219b683ad46744a179ae25bc859.tar.gz PSP.git-24808d2de827f219b683ad46744a179ae25bc859.tar.xz PSP.git-24808d2de827f219b683ad46744a179ae25bc859.zip |
Shared OpenGL context bug fixed
Diffstat (limited to 'Project/Workspace.cpp')
-rw-r--r-- | Project/Workspace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |