mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
egl_destroy - don't do glFlush/glFinish on mobile platforms
This commit is contained in:
parent
8c6f0be6e9
commit
96ddc1f722
@ -81,12 +81,14 @@ void egl_destroy(void *data)
|
|||||||
{
|
{
|
||||||
if (g_egl_dpy)
|
if (g_egl_dpy)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_OPENGL
|
#if defined HAVE_OPENGL
|
||||||
|
#if !defined(RARCH_MOBILE)
|
||||||
if (g_egl_ctx != EGL_NO_CONTEXT)
|
if (g_egl_ctx != EGL_NO_CONTEXT)
|
||||||
{
|
{
|
||||||
glFlush();
|
glFlush();
|
||||||
glFinish();
|
glFinish();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
eglMakeCurrent(g_egl_dpy,
|
eglMakeCurrent(g_egl_dpy,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user