Commit ccc206c4 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add FORCE_GLES switch

parent 7f8bd6de
......@@ -8,6 +8,7 @@ NO_NVMEM := 0
NO_VERIFY := 1
NAOMI := 0
NO_JIT := 1
FORCE_GLES := 0
STATIC_LINKING:= 0
TARGET_NAME := reicast
......@@ -161,7 +162,10 @@ ifeq ($(WITH_DYNAREC), x86)
CFLAGS += -D TARGET_NO_AREC
endif
ifneq (,$(findstring gles,$(platform)))
ifeq ($(FORCE_GLES),1)
GLES = 1
GL_LIB := -lGLESv2
else ifneq (,$(findstring gles,$(platform)))
GLES = 1
GL_LIB := -lGLESv2
else
......@@ -518,7 +522,7 @@ ifeq ($(LTO_TEST),1)
endif
ifeq ($(HAVE_GL), 1)
ifeq ($(HAVE_GLES),1)
ifeq ($(GLES),1)
RZDCY_CFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2
CXXFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2
CFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES2
......
......@@ -98,7 +98,7 @@ SOURCES_CXX += $(CORE_DIR)/rend/gles/gles.cpp \
$(CORE_DIR)/rend/gles/gltex.cpp
SOURCES_C += $(CORE_DIR)/libretro-common/glsym/rglgen.c \
$(CORE_DIR)/libretro-common/glsm/glsm.c
ifeq ($(HAVE_GLES), 1)
ifeq ($(GLES), 1)
SOURCES_C += $(CORE_DIR)/libretro-common/glsym/glsym_es2.c
else
SOURCES_C += $(CORE_DIR)/libretro-common/glsym/glsym_gl.c
......
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