mirror of
https://github.com/gopher64/gopher64.git
synced 2026-10-31 19:47:19 +01:00
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:
1 parent
83b9071271
commit
e549fbc742
7 files changed
+79
-52
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user