Harmony port: fix

This commit is contained in:
Coder2 2025-06-28 21:32:29 +08:00
parent bc8a018033
commit 3e14b2b4a0
No known key found for this signature in database
GPG key ID: 51EA61206B02D886
3 changed files with 3 additions and 6 deletions

View file

@ -1513,12 +1513,10 @@ elseif(OHOS)
set(SDL_VIDEO_DRIVER_OHOS 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/ohos/*.c")
set(HAVE_SDL_VIDEO TRUE)
set(SDL_VULKAN ON)
set(HAVE_VULKAN ON)
set(SDL_VIDEO_VULKAN ON)
set(SDL_VIDEO_RENDER_VULKAN 1)
set(HAVE_RENDER_VULKAN TRUE)
add_definitions(-DVK_USE_PLATFORM_OHOS=1)
if(SDL_OPENGLES)
set(SDL_VIDEO_OPENGL_EGL 1)

@ -1 +0,0 @@
Subproject commit d48a2eedefe303910a84f74847594fe03f691dad

View file

@ -107,6 +107,9 @@ static VideoBootStrap *bootstrap[] = {
#ifdef SDL_VIDEO_DRIVER_ANDROID
&Android_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_OHOS
&OHOS_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_PS2
&PS2_bootstrap,
#endif
@ -148,9 +151,6 @@ static VideoBootStrap *bootstrap[] = {
#endif
#ifdef SDL_VIDEO_DRIVER_OPENVR
&OPENVR_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_OHOS
&OHOS_bootstrap,
#endif
NULL
};