mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
Default to use the built-in EGL definitions
This commit is contained in:
@@ -670,7 +670,6 @@ macro(CheckVivante)
|
|||||||
find_library(VIVANTE_VDK_LIBRARY VDK REQUIRED)
|
find_library(VIVANTE_VDK_LIBRARY VDK REQUIRED)
|
||||||
list(APPEND SDL_EXTRA_LIBS ${VIVANTE_LIBRARY} ${VIVANTE_VDK_LIBRARY})
|
list(APPEND SDL_EXTRA_LIBS ${VIVANTE_LIBRARY} ${VIVANTE_VDK_LIBRARY})
|
||||||
else()
|
else()
|
||||||
list(APPEND SDL_PC_CFLAGS -DLINUX -DEGL_API_FB)
|
|
||||||
list(APPEND SDL_EXTRA_LIBS EGL)
|
list(APPEND SDL_EXTRA_LIBS EGL)
|
||||||
endif(HAVE_VIVANTE_VDK)
|
endif(HAVE_VIVANTE_VDK)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
*
|
*
|
||||||
* This is a simple file to encapsulate the EGL API headers.
|
* This is a simple file to encapsulate the EGL API headers.
|
||||||
*/
|
*/
|
||||||
#if !defined(_MSC_VER) && !defined(__ANDROID__) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
|
#ifdef SDL_USE_SYSTEM_EGL_HEADERS
|
||||||
|
|
||||||
#if defined(__vita__) || defined(__psp2__)
|
#if defined(__vita__) || defined(__psp2__)
|
||||||
#include <psp2/types.h>
|
#include <psp2/types.h>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
|
||||||
#else /* _MSC_VER */
|
#else /* !SDL_USE_SYSTEM_EGL_HEADERS */
|
||||||
|
|
||||||
/* EGL headers for Visual Studio */
|
/* EGL headers for Visual Studio */
|
||||||
|
|
||||||
@@ -2349,4 +2349,4 @@ EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL (EGLDispl
|
|||||||
|
|
||||||
#endif /* __eglext_h_ */
|
#endif /* __eglext_h_ */
|
||||||
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* SDL_USE_SYSTEM_EGL_HEADERS */
|
||||||
|
|||||||
Reference in New Issue
Block a user