summaryrefslogtreecommitdiff
path: root/src/core/frontend/emu_window.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-04 01:47:16 -0400
committerGravatar Lioncash2019-05-04 01:47:38 -0400
commit1230a0e7cebdba78298002f6ea445f293e642ceb (patch)
tree2c311e3e42a5ee527cacec8c194d7092dd3fb351 /src/core/frontend/emu_window.h
parentMerge pull request #2408 from FearlessTobi/port-4215 (diff)
downloadyuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.tar.gz
yuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.tar.xz
yuzu-1230a0e7cebdba78298002f6ea445f293e642ceb.zip
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.
Diffstat (limited to 'src/core/frontend/emu_window.h')
-rw-r--r--src/core/frontend/emu_window.h2
1 files changed, 2 insertions, 0 deletions
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 */
20class GraphicsContext { 20class GraphicsContext {
21public: 21public:
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