mirror of
https://github.com/libretro/RetroArch
synced 2025-01-25 15:35:29 +00:00
Report error if eglSwapInterval() fails.
This commit is contained in:
parent
1a7d10fade
commit
b9b9454c7d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user