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:
parent
1e062103a8
commit
4a20f83572
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue