mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 10:29:07 +01:00
core/frontend/emu_window: Make GraphicsContext's destructor virtual
This class is used in a polymorphic context, so destruction of the context will lead to undefined behavior if the destructor isn't virtual.
This commit is contained in:
parent
1f72bb733f
commit
1230a0e7ce
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
namespace Core::Frontend {
|
namespace Core::Frontend {
|
||||||
|
|
||||||
|
GraphicsContext::~GraphicsContext() = default;
|
||||||
|
|
||||||
class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>,
|
class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>,
|
||||||
public std::enable_shared_from_this<TouchState> {
|
public std::enable_shared_from_this<TouchState> {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -19,6 +19,8 @@ namespace Core::Frontend {
|
||||||
*/
|
*/
|
||||||
class GraphicsContext {
|
class GraphicsContext {
|
||||||
public:
|
public:
|
||||||
|
virtual ~GraphicsContext();
|
||||||
|
|
||||||
/// Makes the graphics context current for the caller thread
|
/// Makes the graphics context current for the caller thread
|
||||||
virtual void MakeCurrent() = 0;
|
virtual void MakeCurrent() = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue