diff --git a/qb/config.params.sh b/qb/config.params.sh index 7d2f75200d..00cd97ef39 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -85,6 +85,8 @@ HAVE_VIVANTE_FBDEV=no # Vivante fbdev context support HAVE_OPENDINGUX_FBDEV=no # Opendingux fbdev context support HAVE_OPENGLES=no # Use GLESv2 instead of desktop GL HAVE_OPENGLES3=no # OpenGLES3 support +HAVE_OPENGLES3_1=no # OpenGLES3.1 support +HAVE_OPENGLES3_2=no # OpenGLES3.2 support HAVE_X11=auto # everything X11. HAVE_XRANDR=auto # Xrandr support. HAVE_OMAP=no # OMAP video support diff --git a/retroarch.c b/retroarch.c index d047904254..1a861d201f 100644 --- a/retroarch.c +++ b/retroarch.c @@ -18842,6 +18842,22 @@ static bool dynamic_request_hw_context(enum retro_hw_context_type type, #if defined(HAVE_OPENGLES3) case RETRO_HW_CONTEXT_OPENGLES_VERSION: +#ifndef HAVE_OPENGLES3_2 + if (major == 3 && minor == 2) + { + RARCH_ERR("Requesting OpenGLES%u.%u context, but RetroArch is compiled against a lesser version. Cannot use HW context.\n", + major, minor); + return false; + } +#endif +#if !defined(HAVE_OPENGLES3_2) && !defined(HAVE_OPENGLES3_1) + if (major == 3 && minor == 1) + { + RARCH_ERR("Requesting OpenGLES%u.%u context, but RetroArch is compiled against a lesser version. Cannot use HW context.\n", + major, minor); + return false; + } +#endif RARCH_LOG("Requesting OpenGLES%u.%u context.\n", major, minor); break;