mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(Makefile) Fix non desktop GL builds
This commit is contained in:
parent
897361b9d4
commit
b160fd20ff
@ -469,9 +469,23 @@ ifeq ($(HAVE_PARPORT), 1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
#
|
ifeq ($(HAVE_GL_CONTEXT),)
|
||||||
ifeq ($(HAVE_OPENGL), 1)
|
HAVE_GL_CONTEXT=0
|
||||||
|
|
||||||
|
ifeq ($(HAVE_OPENGL), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_GLES), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_GLES3), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||||
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
||||||
OBJ += gfx/drivers/gl.o \
|
OBJ += gfx/drivers/gl.o \
|
||||||
gfx/video_context_driver.o \
|
gfx/video_context_driver.o \
|
||||||
@ -563,7 +577,7 @@ ifeq ($(HAVE_SDL), 1)
|
|||||||
input/drivers_joypad/sdl_joypad.o \
|
input/drivers_joypad/sdl_joypad.o \
|
||||||
audio/drivers/sdl_audio.o
|
audio/drivers/sdl_audio.o
|
||||||
|
|
||||||
ifeq ($(HAVE_OPENGL), 1)
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||||
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -578,7 +592,7 @@ ifeq ($(HAVE_SDL2), 1)
|
|||||||
input/drivers_joypad/sdl_joypad.o \
|
input/drivers_joypad/sdl_joypad.o \
|
||||||
audio/drivers/sdl_audio.o
|
audio/drivers/sdl_audio.o
|
||||||
|
|
||||||
ifeq ($(HAVE_OPENGL), 1)
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||||
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user