mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Add basic vulkan support to offscreen video driver so it doesn't crash if you happen to get the offscreen driver and try to use vulkan.
Enable offscreen video driver in windows to make it easier to test. Enable offscreen video driver in macos just to complete the desktop computer trio.
This commit is contained in:
@@ -2907,7 +2907,7 @@ endif()
|
||||
# Platform-independent options
|
||||
|
||||
if(SDL_VIDEO)
|
||||
if(SDL_OFFSCREEN AND SDL_VIDEO_OPENGL_EGL)
|
||||
if(SDL_OFFSCREEN)
|
||||
set(SDL_VIDEO_DRIVER_OFFSCREEN 1)
|
||||
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/offscreen/*.c")
|
||||
set(HAVE_OFFSCREEN TRUE)
|
||||
|
||||
Reference in New Issue
Block a user