aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_synch.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-07 15:57:08 -0500
committerLioncash <mathew1800@gmail.com>2019-03-07 15:59:45 -0500
commit24e2e601d59a164aa86ed7a26f2054de09979b65 (patch)
tree9d31664bdb2fc088f8b0d9d1c575a75dc64734d6 /src/video_core/gpu_synch.h
parent3b63a46ca4dd515ccbf376e9fb4a4afed077b616 (diff)
video_core/gpu: Make GPU's destructor virtual
Because of the recent separation of GPU functionality into sync/async variants, we need to mark the destructor virtual to provide proper destruction behavior, given we use the base class within the System class. Prior to this, it was undefined behavior whether or not the destructor in the derived classes would ever execute.
Diffstat (limited to 'src/video_core/gpu_synch.h')
-rw-r--r--src/video_core/gpu_synch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_synch.h b/src/video_core/gpu_synch.h
index 658f683e2..7d5a241ff 100644
--- a/src/video_core/gpu_synch.h
+++ b/src/video_core/gpu_synch.h
@@ -16,7 +16,7 @@ namespace VideoCommon {
class GPUSynch : public Tegra::GPU {
public:
explicit GPUSynch(Core::System& system, VideoCore::RendererBase& renderer);
- ~GPUSynch();
+ ~GPUSynch() override;
void PushGPUEntries(Tegra::CommandList&& entries) override;
void SwapBuffers(