diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index c09ca6cd14..e366db6a52 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -9703,6 +9703,13 @@ static bool VULKAN_INTERNAL_OnWindowResize(void *userdata, SDL_Event *e) data->swapchainCreateHeight = e->window.data2; } +#ifdef SDL_PLATFORM_ANDROID + if (e->type == SDL_EVENT_DID_ENTER_BACKGROUND) { + data = VULKAN_INTERNAL_FetchWindowData(w); + data->needsSwapchainRecreate = true; + } +#endif + return true; }