mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Merge pull request #3915 from loganmc10/patch-2
Add egl debug context option for Android
This commit is contained in:
commit
846f9a94af
@ -105,8 +105,11 @@ static void *android_gfx_ctx_init(void *video_driver)
|
||||
#ifdef HAVE_OPENGLES
|
||||
EGLint n, major, minor;
|
||||
EGLint format;
|
||||
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
|
||||
bool debug = hwr->debug_context;
|
||||
EGLint context_attributes[] = {
|
||||
EGL_CONTEXT_CLIENT_VERSION, g_es3 ? 3 : 2,
|
||||
EGL_CONTEXT_FLAGS_KHR, debug ? EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR : 0,
|
||||
EGL_NONE
|
||||
};
|
||||
EGLint attribs[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user