[Vulkan] Destroy all RTs before VulkanRenderTargetCache is destroyed

This commit is contained in:
Triang3l
2022-07-04 11:27:51 +03:00
parent 2621dabf0f
commit feaad639fb
3 changed files with 19 additions and 1 deletions

View File

@@ -193,6 +193,10 @@ class RenderTargetCache {
// Call last in implementation-specific initialization (when things like path
// are initialized by the implementation).
void InitializeCommon();
// May be called from the destructor, or from the implementation shutdown to
// destroy all render targets before destroying what they depend on in the
// implementation.
void DestroyAllRenderTargets(bool shutting_down);
// Call last in implementation-specific shutdown, also callable from the
// destructor.
void ShutdownCommon();