mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
(Android) Don't call eglSwapBuffers if g_egl_dpy and g_egl_surf are not
yet ready
This commit is contained in:
parent
66721e8902
commit
60313f7f48
@ -130,6 +130,10 @@ void egl_bind_hw_render(void *data, bool enable)
|
||||
|
||||
void egl_swap_buffers(void *data)
|
||||
{
|
||||
if (g_egl_dpy == EGL_NO_DISPLAY)
|
||||
return;
|
||||
if (g_egl_surf == EGL_NO_SURFACE)
|
||||
return;
|
||||
eglSwapBuffers(g_egl_dpy, g_egl_surf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user