From a8a871bd4ec8342f85186f55366ac1fa272c611b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Feb 2016 11:47:18 +0100 Subject: [PATCH] (DRM) Create drm_api --- gfx/drivers_context/drm_egl_ctx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/drm_egl_ctx.c b/gfx/drivers_context/drm_egl_ctx.c index d7e35a7dbc..6de2960f73 100644 --- a/gfx/drivers_context/drm_egl_ctx.c +++ b/gfx/drivers_context/drm_egl_ctx.c @@ -62,6 +62,8 @@ static volatile sig_atomic_t drm_quit = 0; +static enum gfx_ctx_api drm_api; + static struct gbm_bo *g_bo; static struct gbm_bo *g_next_bo; static struct gbm_surface *g_gbm_surface; @@ -558,7 +560,7 @@ static bool gfx_ctx_drm_egl_set_video_mode(void *data, drm_install_sighandler(); - switch (g_egl_api) + switch (drm_api) { case GFX_CTX_OPENGL_API: #ifdef HAVE_OPENGL @@ -730,7 +732,7 @@ static bool gfx_ctx_drm_egl_bind_api(void *video_driver, g_egl_major = major; g_egl_minor = minor; - g_egl_api = api; + drm_api = api; switch (api) {