Swapchain (and surface) cleanup on APP_CMD_TERM_WINDOW (Android)
This commit is contained in:
parent
b7ca1aad5d
commit
5862dc0479
2 changed files with 20 additions and 8 deletions
|
|
@ -1205,6 +1205,11 @@ void VulkanExampleBase::handleAppCommand(android_app * app, int32_t cmd)
|
|||
LOGD("APP_CMD_GAINED_FOCUS");
|
||||
vulkanExample->focused = true;
|
||||
break;
|
||||
case APP_CMD_TERM_WINDOW:
|
||||
// Window is hidden or closed, clean up resources
|
||||
LOGD("APP_CMD_TERM_WINDOW");
|
||||
vulkanExample->swapChain.cleanup();
|
||||
break;
|
||||
}
|
||||
}
|
||||
#elif defined(__linux__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue