mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GLContext: Use destructor instead of Shutdown() to cleanup
Also uses the Initialize() method to make the context current.
This commit is contained in:
@ -4,7 +4,13 @@
|
||||
|
||||
#include "Common/GL/GLInterface/EGLX11.h"
|
||||
|
||||
GLContextEGLX11::~GLContextEGLX11() = default;
|
||||
GLContextEGLX11::~GLContextEGLX11()
|
||||
{
|
||||
// The context must be destroyed before the window.
|
||||
DestroyWindowSurface();
|
||||
DestroyContext();
|
||||
m_render_window.reset();
|
||||
}
|
||||
|
||||
void GLContextEGLX11::Update()
|
||||
{
|
||||
|
Reference in New Issue
Block a user