From 6882070df2d6c4f77f1d0b69fbdb7687fc2e47ff Mon Sep 17 00:00:00 2001 From: Stuart Kenny Date: Wed, 17 Nov 2021 20:33:44 +0000 Subject: [PATCH] Fix crash on close content after cached GPU pointer cleanup. --- libretro/LibretroGraphicsContext.cpp | 4 ---- libretro/LibretroVulkanContext.cpp | 3 --- 2 files changed, 7 deletions(-) diff --git a/libretro/LibretroGraphicsContext.cpp b/libretro/LibretroGraphicsContext.cpp index 693d769ddf..895208986e 100644 --- a/libretro/LibretroGraphicsContext.cpp +++ b/libretro/LibretroGraphicsContext.cpp @@ -73,10 +73,6 @@ void LibretroHWRenderContext::ContextDestroy() { #endif } - LostBackbuffer(); - - gpu->DeviceLost(); - if (!hw_render_.cache_context && !Libretro::useEmuThread) { Shutdown(); } diff --git a/libretro/LibretroVulkanContext.cpp b/libretro/LibretroVulkanContext.cpp index 666d941de5..baec2450d5 100644 --- a/libretro/LibretroVulkanContext.cpp +++ b/libretro/LibretroVulkanContext.cpp @@ -128,9 +128,6 @@ void LibretroVulkanContext::ContextReset() { void LibretroVulkanContext::ContextDestroy() { INFO_LOG(G3D, "LibretroVulkanContext::ContextDestroy()"); - - LostBackbuffer(); - gpu->DeviceLost(); } void LibretroVulkanContext::CreateDrawContext() {