From 76c124b4373750ffaf9e08ca034ebccace83d530 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Thu, 21 Aug 2014 12:54:20 +0200 Subject: [PATCH] Don't use SDL GL contexts with OpenGL disabled. --- gfx/gfx_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/gfx_context.c b/gfx/gfx_context.c index 93ce79b60d..56a77eae56 100644 --- a/gfx/gfx_context.c +++ b/gfx/gfx_context.c @@ -62,7 +62,7 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { #if defined(IOS) || defined(OSX) //< Don't use __APPLE__ as it breaks basic SDL builds &gfx_ctx_apple, #endif -#if defined(HAVE_SDL) || defined(HAVE_SDL2) +#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && defined(HAVE_OPENGL) &gfx_ctx_sdl_gl, #endif #ifdef EMSCRIPTEN