mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
Allow GLES2 app to use GLES3 core
The Android app is a GLES2 application (it doesn't have HAVE_OPENGLES3 set when it is compiled). However, it is possible to use the GLES2 Android App to launch GLES3 cores, if the phone supports it. This allows cores to set RETRO_HW_CONTEXT_OPENGLES3 and have the Android app respect that, without having to compile the Android app for GLES3.
This commit is contained in:
parent
339ea74ede
commit
8b34a009dc
@ -1137,9 +1137,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
|
||||
#if (defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3))
|
||||
case RETRO_HW_CONTEXT_OPENGLES2:
|
||||
#ifdef HAVE_OPENGLES3
|
||||
case RETRO_HW_CONTEXT_OPENGLES3:
|
||||
#endif
|
||||
RARCH_LOG("Requesting OpenGLES%u context.\n",
|
||||
cb->context_type == RETRO_HW_CONTEXT_OPENGLES2 ? 2 : 3);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user