Commit 247c8340 authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

Fix compile failure on emscripten

Not tested besides compilation
parent da3481af
......@@ -52,7 +52,9 @@ ifeq ($(HAVE_OPENGL), 1)
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsm/glsm.c
ifeq ($(GLES), 1)
GLFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2
ifneq ($(STATIC_LINKING), 1)
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsym/glsym_es2.c
endif
else
GLFLAGS += -DHAVE_OPENGL
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsym/glsym_gl.c
......
......@@ -280,9 +280,8 @@ else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
GLES := 1
CPUFLAGS += -Dasm=asmerror -D__asm__=asmerror
PLATCFLAGS += -Drglgen_symbol_map=craft_rglgen_symbol_map \
-Drglgen_resolve_symbols_custom=craft_rglgen_resolve_symbols_custom \
-Drglgen_resolve_symbols=craft_rglgen_resolve_symbols \
PLATCFLAGS += -Drglgen_resolve_symbols_custom=craft_rglgen_resolve_symbols_custom \
-Drglgen_resolve_symbols=craft_rglgen_resolve_symbols
STATIC_LINKING=1
......
......@@ -32,7 +32,7 @@
RETRO_BEGIN_DECLS
#ifdef HAVE_OPENGLES2
#ifdef IOS
#if defined (IOS) || defined(EMSCRIPTEN)
typedef GLfloat GLdouble;
#endif
typedef GLclampf GLclampd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment