From 0506cf18aba91f3d7143154c07bbd2338a83ee62 Mon Sep 17 00:00:00 2001 From: captain0xff Date: Sat, 13 Jul 2024 17:23:53 +0530 Subject: [PATCH] android: enable vulkan renderer --- CMakeLists.txt | 4 ++++ include/build_config/SDL_build_config_android.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a2298d806b..f75f0654f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1339,6 +1339,10 @@ if(ANDROID) if(VULKAN_PASSED_ANDROID_CHECKS) set(SDL_VIDEO_VULKAN 1) set(HAVE_VULKAN TRUE) + if(SDL_RENDER_VULKAN) + set(SDL_VIDEO_RENDER_VULKAN 1) + set(HAVE_RENDER_VULKAN TRUE) + endif() endif() endif() endif() diff --git a/include/build_config/SDL_build_config_android.h b/include/build_config/SDL_build_config_android.h index 013bd060ee..098e2f5052 100644 --- a/include/build_config/SDL_build_config_android.h +++ b/include/build_config/SDL_build_config_android.h @@ -193,6 +193,9 @@ #define SDL_VIDEO_VULKAN 0 #else #define SDL_VIDEO_VULKAN 1 +#ifndef SDL_VIDEO_RENDER_VULKAN +#define SDL_VIDEO_RENDER_VULKAN 1 +#endif #endif /* Enable system power support */