Fix version detection for non-HW cores.
This commit is contained in:
parent
eb374e6b58
commit
4adf16b5ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue