Some paranoia and a comment

This commit is contained in:
Henrik Rydgård committed 2024-01-29 00:54:18 +01:00
1 parent 9401fabfa1
commit 0615ba3e54
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -397,8 +397,10 @@ GPUCommonHW::~GPUCommonHW() {
framebufferManager_->DestroyAllFBOs();
delete framebufferManager_;
delete textureCache_;
shaderManager_->ClearShaders();
delete shaderManager_;
if (shaderManager_) {
shaderManager_->ClearShaders();
delete shaderManager_;
}
}
// Called once per frame. Might also get called during the pause screen
+1
View File
@@ -924,6 +924,7 @@ void NativeShutdownGraphics() {
}
g_iconCache.ClearTextures();
// TODO: This is not really necessary with Vulkan on Android - could keep shaders etc in memory
if (gpu)
gpu->DeviceLost();