(Android) Don't call eglSwapBuffers if g_egl_dpy and g_egl_surf are not

yet ready
This commit is contained in:
twinaphex 2015-12-03 22:23:20 +01:00
parent 66721e8902
commit 60313f7f48

View File

@ -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);
}