Browse Source
Merge pull request #2447 from lioncash/dtor
core/frontend/emu_window: Make GraphicsContext's destructor virtual
pull/15/merge
Rodrigo Locatti
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
0 deletions
-
src/core/frontend/emu_window.cpp
-
src/core/frontend/emu_window.h
|
|
|
@ -10,6 +10,8 @@ |
|
|
|
|
|
|
|
namespace Core::Frontend { |
|
|
|
|
|
|
|
GraphicsContext::~GraphicsContext() = default; |
|
|
|
|
|
|
|
class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, |
|
|
|
public std::enable_shared_from_this<TouchState> { |
|
|
|
public: |
|
|
|
|
|
|
|
@ -19,6 +19,8 @@ namespace Core::Frontend { |
|
|
|
*/ |
|
|
|
class GraphicsContext { |
|
|
|
public: |
|
|
|
virtual ~GraphicsContext(); |
|
|
|
|
|
|
|
/// Makes the graphics context current for the caller thread |
|
|
|
virtual void MakeCurrent() = 0; |
|
|
|
|
|
|
|
|