Merge pull request #3915 from loganmc10/patch-2

Add egl debug context option for Android
This commit is contained in:
Twinaphex 2016-11-01 08:12:23 +01:00 committed by GitHub
commit 846f9a94af

View File

@ -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[] = {