mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-18 15:32:06 +00:00
GLContext: Use destructor instead of Shutdown() to cleanup
Also uses the Initialize() method to make the context current.
This commit is contained in:
parent
4b8d1c2b42
commit
025e909773
16 changed files with 122 additions and 115 deletions
|
@ -803,11 +803,7 @@ Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context)
|
|||
ClearEFBCache();
|
||||
}
|
||||
|
||||
Renderer::~Renderer()
|
||||
{
|
||||
m_main_gl_context->ClearCurrent();
|
||||
m_main_gl_context->Shutdown();
|
||||
}
|
||||
Renderer::~Renderer() = default;
|
||||
|
||||
bool Renderer::IsHeadless() const
|
||||
{
|
||||
|
|
|
@ -166,7 +166,6 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
|||
if (!main_gl_context)
|
||||
return false;
|
||||
|
||||
main_gl_context->MakeCurrent();
|
||||
if (!InitializeGLExtensions(main_gl_context.get()) || !FillBackendInfo())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue