mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fix EGL/OpenGL ES paths
This commit is contained in:
parent
9cbd05df1e
commit
9c489c7c0d
@ -25,12 +25,23 @@
|
|||||||
#include "SDL_sysvideo.h"
|
#include "SDL_sysvideo.h"
|
||||||
#include "SDL_egl.h"
|
#include "SDL_egl.h"
|
||||||
|
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_RPI
|
#if SDL_VIDEO_DRIVER_RPI
|
||||||
|
/* Raspbian places the OpenGL ES/EGL binaries in a non standard path */
|
||||||
#define DEFAULT_EGL "/opt/vc/lib/libEGL.so"
|
#define DEFAULT_EGL "/opt/vc/lib/libEGL.so"
|
||||||
#define DEFAULT_OGL_ES2 "/opt/vc/lib/libGLESv2.so"
|
#define DEFAULT_OGL_ES2 "/opt/vc/lib/libGLESv2.so"
|
||||||
#define DEFAULT_OGL_ES_PVR "/opt/vc/lib/libGLES_CM.so"
|
#define DEFAULT_OGL_ES_PVR "/opt/vc/lib/libGLES_CM.so"
|
||||||
#define DEFAULT_OGL_ES "/opt/vc/lib/libGLESv1_CM.so"
|
#define DEFAULT_OGL_ES "/opt/vc/lib/libGLESv1_CM.so"
|
||||||
|
|
||||||
|
#elif SDL_VIDEO_DRIVER_ANDROID
|
||||||
|
/* Android */
|
||||||
|
#define DEFAULT_EGL "libEGL.so"
|
||||||
|
#define DEFAULT_OGL_ES2 "libGLESv2.so"
|
||||||
|
#define DEFAULT_OGL_ES_PVR "libGLES_CM.so"
|
||||||
|
#define DEFAULT_OGL_ES "libGLESv1_CM.so"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
/* Desktop Linux */
|
||||||
#define DEFAULT_EGL "libEGL.so.1"
|
#define DEFAULT_EGL "libEGL.so.1"
|
||||||
#define DEFAULT_OGL_ES2 "libGLESv2.so.2"
|
#define DEFAULT_OGL_ES2 "libGLESv2.so.2"
|
||||||
#define DEFAULT_OGL_ES_PVR "libGLES_CM.so.1"
|
#define DEFAULT_OGL_ES_PVR "libGLES_CM.so.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user