mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Decouple Vulkan context object destruction from retroarch's ContextDestroy call
This commit is contained in:
@@ -125,6 +125,13 @@ void LibretroVulkanContext::ContextReset() {
|
||||
LibretroHWRenderContext::ContextReset();
|
||||
}
|
||||
|
||||
void LibretroVulkanContext::ContextDestroy() {
|
||||
INFO_LOG(G3D, "LibretroVulkanContext::ContextDestroy()");
|
||||
|
||||
LostBackbuffer();
|
||||
gpu->DeviceLost();
|
||||
}
|
||||
|
||||
void LibretroVulkanContext::CreateDrawContext() {
|
||||
vk->ReinitSurface();
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
class LibretroVulkanContext : public LibretroHWRenderContext {
|
||||
public:
|
||||
LibretroVulkanContext();
|
||||
~LibretroVulkanContext() override {}
|
||||
~LibretroVulkanContext() override { Shutdown(); }
|
||||
bool Init() override;
|
||||
void Shutdown() override;
|
||||
void SwapBuffers() override;
|
||||
@@ -14,6 +14,7 @@ public:
|
||||
void CreateDrawContext() override;
|
||||
|
||||
void ContextReset() override;
|
||||
void ContextDestroy() override;
|
||||
|
||||
GPUCore GetGPUCore() override { return GPUCORE_VULKAN; }
|
||||
const char *Ident() override { return "Vulkan"; }
|
||||
|
||||
Reference in New Issue
Block a user