mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Some paranoia and a comment
This commit is contained in:
1 parent
9401fabfa1
commit
0615ba3e54
2 files changed
+5
-2
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user