Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
SDL - add SDL_WINDOW_VULKAN and make Android_CreateWindow only create…
… an EGLSurface when SDL_WINDOW_VULKAN is not present. This makes it so the ANativeWindow* can be used with vkCreateAndroidSurfaceKHR, otherwise it will fail because having both an EGLSurface and VkSurfaceKHR attached to a window is not allowed according to the Vulkan spec: "In particular, only one VkSurfaceKHR can exist at a time for a given window. Similarly, a native window cannot be used by both a VkSurfaceKHR and EGLSurface simultaneously" CR: SamL
- Loading branch information
Showing
with
13 additions
and 8 deletions.
- +2 −1 include/SDL_video.h
- +1 −1 src/video/SDL_video.c
- +10 −6 src/video/android/SDL_androidwindow.c