From b9b9454c7d4b3458ad10aefab03a4d61c4448cff Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 16 Sep 2012 15:26:02 +0200 Subject: [PATCH] Report error if eglSwapInterval() fails. --- gfx/context/xegl_ctx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/context/xegl_ctx.c b/gfx/context/xegl_ctx.c index 2e479812f3..4cdf9d64d5 100644 --- a/gfx/context/xegl_ctx.c +++ b/gfx/context/xegl_ctx.c @@ -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,