Report error if eglSwapInterval() fails.

This commit is contained in:
Themaister 2012-09-16 15:26:02 +02:00
parent 1a7d10fade
commit b9b9454c7d

View File

@ -114,7 +114,11 @@ void gfx_ctx_set_swap_interval(unsigned interval, bool inited)
{
g_interval = interval;
if (inited)
eglSwapInterval(g_egl_dpy, g_interval);
{
RARCH_LOG("[X/EGL]: eglSwapInterval(%u)\n", g_interval);
if (!eglSwapInterval(g_egl_dpy, g_interval))
RARCH_ERR("[X/EGL]: eglSwapInterval() failed.\n");
}
}
void gfx_ctx_check_window(bool *quit,