From 4adf16b5ed7a98cb865bd6df0485f747a595b938 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 7 Mar 2019 16:49:13 +0100 Subject: [PATCH] Fix version detection for non-HW cores. --- gfx/drivers/gl_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/gl_core.c b/gfx/drivers/gl_core.c index f0776c0b8d..4aabd16488 100644 --- a/gfx/drivers/gl_core.c +++ b/gfx/drivers/gl_core.c @@ -449,7 +449,7 @@ static const gfx_ctx_driver_t *gl_core_get_context(gl_core_t *gl) } #else api = GFX_CTX_OPENGL_API; - if (hwr) + if (hwr && hwr->context_type != RETRO_HW_CONTEXT_NONE) { major = hwr->version_major; minor = hwr->version_minor;