mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix function loading on Raspberry Pi
This commit is contained in:
parent
8004dc200d
commit
a7ecc8534b
|
@ -5,6 +5,10 @@
|
||||||
#define glGetProcAddress wglGetProcAddress
|
#define glGetProcAddress wglGetProcAddress
|
||||||
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) glGetProcAddress(#proc_name)
|
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) glGetProcAddress(#proc_name)
|
||||||
|
|
||||||
|
#elif defined(VC)
|
||||||
|
|
||||||
|
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) dlsym(gles2so, #proc_name);
|
||||||
|
|
||||||
#elif defined(EGL)
|
#elif defined(EGL)
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
@ -162,6 +166,9 @@ PFNGLDRAWELEMENTSBASEVERTEXPROC g_glDrawElementsBaseVertex;
|
||||||
|
|
||||||
void initGLFunctions()
|
void initGLFunctions()
|
||||||
{
|
{
|
||||||
|
#ifdef VC
|
||||||
|
void *gles2so = dlopen("/opt/vc/lib/libGLESv2.so", RTLD_NOW);
|
||||||
|
#endif
|
||||||
#ifdef OS_WINDOWS
|
#ifdef OS_WINDOWS
|
||||||
GL_GET_PROC_ADR(PFNGLACTIVETEXTUREPROC, glActiveTexture);
|
GL_GET_PROC_ADR(PFNGLACTIVETEXTUREPROC, glActiveTexture);
|
||||||
GL_GET_PROC_ADR(PFNGLBLENDCOLORPROC, glBlendColor);
|
GL_GET_PROC_ADR(PFNGLBLENDCOLORPROC, glBlendColor);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user