1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Add support for odroid

This commit is contained in:
Gillou68310 2017-12-14 14:14:31 +01:00
parent 6308cc2918
commit cc3e1e6302
2 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,7 @@ endif()
option(EGL "Set to ON if targeting an EGL device" ${EGL})
option(PANDORA "Set to ON if targeting an OpenPandora" ${PANDORA})
option(ODROID "Set to ON if targeting an Odroid" ${ODROID})
option(MUPENPLUSAPI "Set to ON for Mupen64Plus plugin" ${MUPENPLUSAPI})
option(MESA "Set to ON to disable Raspberry Pi autodetection" ${MESA})
@ -224,6 +225,12 @@ if(PANDORA)
)
endif(PANDORA)
if(ODROID)
add_definitions(
-DODROID
)
endif(ODROID)
if(UNIX OR BCMHOST)
SET( FREETYPE_INCLUDE_DIRS "/usr/include/freetype2/" )
else(UNIX OR BCMHOST)

View File

@ -5,7 +5,7 @@
#define glGetProcAddress wglGetProcAddress
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) glGetProcAddress(#proc_name)
#elif defined(VC)
#elif defined(ODROID) || defined(VC)
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) dlsym(gles2so, #proc_name);
@ -184,6 +184,8 @@ void initGLFunctions()
{
#ifdef VC
void *gles2so = dlopen("/opt/vc/lib/libbrcmGLESv2.so", RTLD_NOW);
#elif defined(ODROID)
void *gles2so = dlopen("/usr/lib/arm-linux-gnueabihf/libGLESv2.so", RTLD_NOW);
#endif
#ifdef OS_WINDOWS
GL_GET_PROC_ADR(PFNGLACTIVETEXTUREPROC, glActiveTexture);