Procházet zdrojové kódy

Merge pull request #2447 from lioncash/dtor

core/frontend/emu_window: Make GraphicsContext's destructor virtual
Rodrigo Locatti před 7 roky
rodič
revize
6743982d28

+ 2 - 0
src/core/frontend/emu_window.cpp

@@ -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:

+ 2 - 0
src/core/frontend/emu_window.h

@@ -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;