diff options
| author | Stenzek <stenzek@gmail.com> | 2018-10-03 23:03:33 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-10-20 21:11:34 +1000 |
| commit | 025e909773a2761cad8a3954498fe800f6f94963 (patch) | |
| tree | 7a6efd11cd6b58c313ebcc2bfabac4e14b197f93 /Source/Core/VideoBackends/Software/SWOGLWindow.cpp | |
| parent | 4b8d1c2b429485d54d7dad2fdc142ed43b34b992 (diff) | |
GLContext: Use destructor instead of Shutdown() to cleanup
Also uses the Initialize() method to make the context current.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWOGLWindow.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWOGLWindow.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp index 4936d1a13c..81216ff7ef 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp @@ -13,15 +13,7 @@ #include "VideoBackends/Software/SWTexture.h" SWOGLWindow::SWOGLWindow() = default; - -SWOGLWindow::~SWOGLWindow() -{ - if (m_gl_context) - { - m_gl_context->ClearCurrent(); - m_gl_context->Shutdown(); - } -} +SWOGLWindow::~SWOGLWindow() = default; std::unique_ptr<SWOGLWindow> SWOGLWindow::Create(const WindowSystemInfo& wsi) { @@ -46,8 +38,6 @@ bool SWOGLWindow::Initialize(const WindowSystemInfo& wsi) if (!m_gl_context) return false; - m_gl_context->MakeCurrent(); - // Init extension support. if (!GLExtensions::Init(m_gl_context.get())) { |
