Fixed build on Steam Link hardware

main
Sam Lantinga 2023-01-13 16:37:56 -08:00
parent decbbb0499
commit 8238a128c3
2 changed files with 1 additions and 3 deletions

View File

@ -670,6 +670,7 @@ macro(CheckVivante)
find_library(VIVANTE_VDK_LIBRARY VDK REQUIRED)
list(APPEND SDL_EXTRA_LIBS ${VIVANTE_LIBRARY} ${VIVANTE_VDK_LIBRARY})
else()
target_compile_definitions(sdl-build-options INTERFACE "LINUX;EGL_API_FB")
list(APPEND SDL_PC_CFLAGS -DLINUX -DEGL_API_FB)
list(APPEND SDL_EXTRA_LIBS EGL)
endif(HAVE_VIVANTE_VDK)

View File

@ -26,9 +26,6 @@
#include "../SDL_sysvideo.h"
/* Set up definitions for Vivante EGL */
#define LINUX
#define EGL_API_FB
#include <SDL3/SDL_egl.h>
#if SDL_VIDEO_DRIVER_VIVANTE_VDK