mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #10248 from unknownbrackets/android
Android: Fix crash on shutdown/restart
This commit is contained in:
commit
7f5ba21402
2 changed files with 3 additions and 3 deletions
|
@ -359,10 +359,10 @@ bool AndroidVulkanContext::Init(ANativeWindow *wnd, int desiredBackbufferSizeX,
|
|||
void AndroidVulkanContext::Shutdown() {
|
||||
ILOG("AndroidVulkanContext::Shutdown");
|
||||
draw_->HandleEvent(Draw::Event::LOST_BACKBUFFER, g_Vulkan->GetBackbufferWidth(), g_Vulkan->GetBackbufferHeight());
|
||||
delete draw_;
|
||||
draw_ = nullptr;
|
||||
ILOG("Calling NativeShutdownGraphics");
|
||||
NativeShutdownGraphics();
|
||||
delete draw_;
|
||||
draw_ = nullptr;
|
||||
g_Vulkan->WaitUntilQueueIdle();
|
||||
g_Vulkan->DestroyObjects();
|
||||
g_Vulkan->DestroyDevice();
|
||||
|
|
|
@ -541,7 +541,7 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
|
|||
if (badOrientationCount < 3 && requestedPortrait != detectedPortrait) {
|
||||
Log.e(TAG, "Bad orientation detected (w=" + pixelWidth + " h=" + pixelHeight + "! Recreating activity.");
|
||||
badOrientationCount++;
|
||||
recreate();;
|
||||
recreate();
|
||||
return;
|
||||
} else if (requestedPortrait == detectedPortrait) {
|
||||
badOrientationCount = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue