diff --git a/Makefile.common b/Makefile.common index b255b1937a..8c82929a6c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1107,6 +1107,7 @@ endif endif ifeq ($(HAVE_EGL), 1) + DEFINES += -DHAVE_EGL OBJ += gfx/common/egl_common.o endif diff --git a/Makefile.emscripten b/Makefile.emscripten index e191cfd874..3613fbe7a2 100644 --- a/Makefile.emscripten +++ b/Makefile.emscripten @@ -6,9 +6,10 @@ EOPTS = $(addprefix -s $(EMPTY), $(EOPT)) # Add '-s ' to each option PTHREAD = 0 OS = Emscripten OBJ := -DEFINES := -DRARCH_INTERNAL -DHAVE_OVERLAY -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD) -DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_OVERLAY -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN +DEFINES := -DRARCH_INTERNAL -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD) +DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN +HAVE_OVERLAY = 1 HAVE_CC_RESAMPLER = 1 HAVE_EGL = 1 HAVE_OPENGLES = 1