From 96ddc1f722ca7a1445d1680daae0834e9dc92b89 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Dec 2015 01:44:41 +0100 Subject: [PATCH] egl_destroy - don't do glFlush/glFinish on mobile platforms --- gfx/common/egl_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/common/egl_common.c b/gfx/common/egl_common.c index 7089ba0578..b4d2053712 100644 --- a/gfx/common/egl_common.c +++ b/gfx/common/egl_common.c @@ -81,12 +81,14 @@ void egl_destroy(void *data) { if (g_egl_dpy) { -#ifdef HAVE_OPENGL +#if defined HAVE_OPENGL +#if !defined(RARCH_MOBILE) if (g_egl_ctx != EGL_NO_CONTEXT) { glFlush(); glFinish(); } +#endif #endif eglMakeCurrent(g_egl_dpy,