From 0510101f6cfcdfea54a80ce78ed66bd848746513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 10 Nov 2020 13:24:26 +0100 Subject: [PATCH] Fix task switching issue with reinterpret. Fixes #13649 --- GPU/Common/FramebufferManagerCommon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index 45cee9199c50..3a5fa2e21e2b 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -2273,9 +2273,11 @@ void FramebufferManagerCommon::DeviceLost() { } if (reinterpretSampler_) { reinterpretSampler_->Release(); + reinterpretSampler_ = nullptr; } if (reinterpretVS_) { reinterpretVS_->Release(); + reinterpretVS_ = nullptr; } presentation_->DeviceLost(); draw_ = nullptr;