diff options
| author | 2019-05-07 05:54:04 -0300 | |
|---|---|---|
| committer | 2019-05-07 05:54:04 -0300 | |
| commit | 6743982d28ac44b01a1597af8903e08674d18265 (patch) | |
| tree | 205a3b154eee00c9878b59c29c9d3f0c317cff11 /src | |
| parent | Merge pull request #2448 from lioncash/pragma (diff) | |
| parent | core/frontend/emu_window: Make GraphicsContext's destructor virtual (diff) | |
| download | yuzu-6743982d28ac44b01a1597af8903e08674d18265.tar.gz yuzu-6743982d28ac44b01a1597af8903e08674d18265.tar.xz yuzu-6743982d28ac44b01a1597af8903e08674d18265.zip | |
Merge pull request #2447 from lioncash/dtor
core/frontend/emu_window: Make GraphicsContext's destructor virtual
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/frontend/emu_window.cpp | 2 | ||||
| -rw-r--r-- | src/core/frontend/emu_window.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index 1320bbe77..eda466a5d 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | namespace Core::Frontend { | 11 | namespace Core::Frontend { |
| 12 | 12 | ||
| 13 | GraphicsContext::~GraphicsContext() = default; | ||
| 14 | |||
| 13 | class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, | 15 | class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, |
| 14 | public std::enable_shared_from_this<TouchState> { | 16 | public std::enable_shared_from_this<TouchState> { |
| 15 | public: | 17 | public: |
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 70a522556..e2c290dc1 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h | |||
| @@ -19,6 +19,8 @@ namespace Core::Frontend { | |||
| 19 | */ | 19 | */ |
| 20 | class GraphicsContext { | 20 | class GraphicsContext { |
| 21 | public: | 21 | public: |
| 22 | virtual ~GraphicsContext(); | ||
| 23 | |||
| 22 | /// Makes the graphics context current for the caller thread | 24 | /// Makes the graphics context current for the caller thread |
| 23 | virtual void MakeCurrent() = 0; | 25 | virtual void MakeCurrent() = 0; |
| 24 | 26 | ||