diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-04-12 09:49:04 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-04-12 09:53:55 -0400 |
| commit | 31932904c5f43f46e3dda21e948970418e509dbf (patch) | |
| tree | 6212ea28ad174d3fee214e35c556a5c63d820b9f /src/video_core/engines/engine_interface.h | |
| parent | 26d60014d04a2d2134076435d213c9585e802038 (diff) | |
engine_interface: Add missing virtual destructor
Eliminates a potential bug vector related to inheritance. Plus, we
should generally be specifying the destructor as virtual within purely
virtual interfaces to begin with.
Diffstat (limited to 'src/video_core/engines/engine_interface.h')
| -rw-r--r-- | src/video_core/engines/engine_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/engines/engine_interface.h b/src/video_core/engines/engine_interface.h index 18a9db7e6..c7ffd68c5 100644 --- a/src/video_core/engines/engine_interface.h +++ b/src/video_core/engines/engine_interface.h @@ -4,13 +4,14 @@ #pragma once -#include <type_traits> #include "common/common_types.h" namespace Tegra::Engines { class EngineInterface { public: + virtual ~EngineInterface() = default; + /// Write the value to the register identified by method. virtual void CallMethod(u32 method, u32 method_argument, bool is_last_call) = 0; |
