LIBRETRO: BUILD: add FORCE_OPENGL*

This commit is contained in:
Giovanni Cascione 2024-05-31 12:58:28 +02:00
parent b8dac3f5b0
commit 3df20dd9c6

View File

@ -34,6 +34,9 @@ USE_LIBCO ?= 1
USE_MT32EMU ?= 1
USE_CLOUD ?= 0
DEBUG ?= 0
FORCE_OPENGL ?= 0
FORCE_OPENGLES2 ?= 0
FORCE_OPENGLNONE ?= 0
DEBUG_ALLOW_DIRTY_SUBMODULES ?= 0
@ -112,6 +115,21 @@ else
DEFINES += -DDISABLE_TEXT_CONSOLE -DRELEASE_BUILD
endif
ifeq ($(FORCE_OPENGL), 1)
HAVE_OPENGL := 1
HAVE_OPENGLES2 :=
endif
ifeq ($(FORCE_OPENGLES2), 1)
HAVE_OPENGL :=
HAVE_OPENGLES2 := 1
endif
ifeq ($(FORCE_OPENGLNONE), 1)
HAVE_OPENGL :=
HAVE_OPENGLES2 :=
endif
ifeq ($(or $(HAVE_OPENGL), $(HAVE_OPENGLES2)), 1)
USE_OPENGL := 1
USE_OPENGL_GAME := 1