Fail miserably at using GLSM_CTL_PROC_ADDRESS_GET

I get linking problems.

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2017-12-23 17:06:32 +00:00
parent 1e062103a8
commit 4a20f83572
2 changed files with 15 additions and 4 deletions

View File

@ -105,6 +105,7 @@ else
endif endif
LDFLAGS += $(LIBM) -lmpv LDFLAGS += $(LIBM) -lmpv
LIBRETRO-COM = -Ilibretro-common/include
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g CFLAGS += -O0 -g
@ -112,8 +113,8 @@ else
CFLAGS += -O3 CFLAGS += -O3
endif endif
OBJECTS := mpv-libretro.o glsym/rglgen.o OBJECTS := mpv-libretro.o libretro-common/glsm/glsm.o libretro-common/gfx/gl_capabilities.o
CFLAGS += -Wall -pedantic $(fpic) CFLAGS += -Wall -pedantic $(LIBRETRO-COM) $(fpic)
ifeq ($(GLES), 1) ifeq ($(GLES), 1)
CFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2 CFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2

View File

@ -7,8 +7,8 @@
#include <mpv/client.h> #include <mpv/client.h>
#include <mpv/opengl_cb.h> #include <mpv/opengl_cb.h>
#include "glsym/glsym.h" #include <glsm/glsmsym.h>
#include "libretro.h" #include <libretro.h>
static struct retro_hw_render_callback hw_render; static struct retro_hw_render_callback hw_render;
@ -38,6 +38,16 @@ static void fallback_log(enum retro_log_level level, const char *fmt, ...)
va_end(va); va_end(va);
} }
void *VidExt_GL_GetProcAddress(const char* Proc)
{
glsm_ctx_proc_address_t proc_info;
proc_info.addr = NULL;
if (!glsm_ctl(GLSM_CTL_PROC_ADDRESS_GET, NULL))
return NULL;
return proc_info.addr(Proc);
}
void retro_init(void) void retro_init(void)
{ {
return; return;