From 8d586e1a0c30e929e51f0c75d353cc945d0fd32c Mon Sep 17 00:00:00 2001 From: flyinghead Date: Tue, 9 Oct 2018 20:31:40 +0200 Subject: [PATCH] Do not force the requested hw context to be Open GL --- gfx/drivers/gl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 50e6bd4095..cfcd81440f 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1791,7 +1791,6 @@ static void *gl_init(const video_info_t *video, { hwr->version_major = gl->version_major; hwr->version_minor = gl->version_minor; - hwr->context_type = RETRO_HW_CONTEXT_OPENGL; } #ifdef GL_CONTEXT_PROFILE_MASK @@ -1807,8 +1806,6 @@ static void *gl_init(const video_info_t *video, gl_query_core_context_set(true); gl->core_context_in_use = true; - if (hwr) - hwr->context_type = RETRO_HW_CONTEXT_OPENGL_CORE; /** * Ensure that the rest of the frontend knows we have a core context */ @@ -1824,7 +1821,11 @@ static void *gl_init(const video_info_t *video, goto error; } } + else #endif + if (hwr && hwr->context_type == RETRO_HW_CONTEXT_OPENGL_CORE) + hwr->context_type = RETRO_HW_CONTEXT_OPENGL; + if (!renderchain_gl_init_first(&gl->renderchain_driver, &gl->renderchain_data))