Don't compile in GLX if HAVE_OPENGLES is defined

This commit is contained in:
twinaphex 2015-05-09 11:27:51 +02:00
parent 6fbd9df9d9
commit bbd2f6054b
2 changed files with 4 additions and 2 deletions

View File

@ -502,12 +502,14 @@ ifeq ($(HAVE_OPENGL), 1)
endif
ifeq ($(HAVE_X11), 1)
OBJ += gfx/drivers_context/glx_ctx.o
ifeq ($(HAVE_EGL), 1)
OBJ += gfx/drivers_context/xegl_ctx.o
DEFINES += $(EGL_CFLAGS)
LIBS += $(EGL_LIBS)
endif
ifneq ($(HAVE_EGL), 1)
OBJ += gfx/drivers_context/glx_ctx.o
endif
endif
ifeq ($(HAVE_WAYLAND), 1)

View File

@ -41,7 +41,7 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = {
#if defined(_WIN32) && defined(HAVE_OPENGL)
&gfx_ctx_wgl,
#endif
#if defined(HAVE_X11) && defined(HAVE_OPENGL)
#if defined(HAVE_X11) && defined(HAVE_OPENGL) && !defined(HAVE_OPENGLES)
&gfx_ctx_glx,
#endif
#if defined(HAVE_WAYLAND) && defined(HAVE_OPENGL) && defined(HAVE_EGL)