pause on background for android (#1255)

* pause on backgroun for android

* more

* more

* more

* more

* more

* more

* more

* more

* more

* add check

* update gradle
This commit is contained in:
Logan McNaughton authored and GitHub committed 2026-10-09 14:24:58 +00:00
1 parent 83b9071271
commit e549fbc742
7 files changed
+79 -52

No files matched your search

+4
View File
@@ -7,12 +7,16 @@ VkSurfaceKHR SDL_WSIPlatform::create_surface(VkInstance instance,
bool result = SDL_Vulkan_CreateSurface(window, instance, NULL, &surface);
if (result != true) {
printf("Error creating surface\n");
surface_valid = false;
} else {
surface_valid = true;
}
return surface;
}
void SDL_WSIPlatform::destroy_surface(VkInstance instance,
VkSurfaceKHR surface) {
surface_valid = false;
SDL_Vulkan_DestroySurface(instance, surface, NULL);
}