mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
android: enable vulkan renderer
This commit is contained in:
committed by
Sam Lantinga
parent
f13be04980
commit
0506cf18ab
@@ -1339,6 +1339,10 @@ if(ANDROID)
|
|||||||
if(VULKAN_PASSED_ANDROID_CHECKS)
|
if(VULKAN_PASSED_ANDROID_CHECKS)
|
||||||
set(SDL_VIDEO_VULKAN 1)
|
set(SDL_VIDEO_VULKAN 1)
|
||||||
set(HAVE_VULKAN TRUE)
|
set(HAVE_VULKAN TRUE)
|
||||||
|
if(SDL_RENDER_VULKAN)
|
||||||
|
set(SDL_VIDEO_RENDER_VULKAN 1)
|
||||||
|
set(HAVE_RENDER_VULKAN TRUE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -193,6 +193,9 @@
|
|||||||
#define SDL_VIDEO_VULKAN 0
|
#define SDL_VIDEO_VULKAN 0
|
||||||
#else
|
#else
|
||||||
#define SDL_VIDEO_VULKAN 1
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
#ifndef SDL_VIDEO_RENDER_VULKAN
|
||||||
|
#define SDL_VIDEO_RENDER_VULKAN 1
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Enable system power support */
|
/* Enable system power support */
|
||||||
|
|||||||
Reference in New Issue
Block a user