mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +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)
|
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);
|
eglSwapBuffers(g_egl_dpy, g_egl_surf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user