mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Add some more error logging in X/EGL.
This commit is contained in:
parent
5efedf134c
commit
74735e2b4d
@ -292,16 +292,16 @@ static bool gfx_ctx_init(void)
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
g_egl_dpy = eglGetDisplay((EGLNativeDisplayType)g_dpy);
|
g_egl_dpy = eglGetDisplay((EGLNativeDisplayType)g_dpy);
|
||||||
if (!g_egl_dpy)
|
if (g_egl_dpy == EGL_NO_DISPLAY)
|
||||||
{
|
{
|
||||||
RARCH_ERR("[X/EGL]: EGL display not available.\n");
|
RARCH_ERR("[X/EGL]: EGL display not available (Error: 0x%x).\n", (unsigned)eglGetError());
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
EGLint egl_major, egl_minor;
|
EGLint egl_major, egl_minor;
|
||||||
if (!eglInitialize(g_egl_dpy, &egl_major, &egl_minor))
|
if (!eglInitialize(g_egl_dpy, &egl_major, &egl_minor))
|
||||||
{
|
{
|
||||||
RARCH_ERR("[X/EGL]: Unable to initialize EGL.\n");
|
RARCH_ERR("[X/EGL]: Unable to initialize EGL (Error: 0x%x).\n", (unsigned)eglGetError());
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ static bool gfx_ctx_init(void)
|
|||||||
EGLint num_configs;
|
EGLint num_configs;
|
||||||
if (!eglChooseConfig(g_egl_dpy, attrib_ptr, &g_config, 1, &num_configs))
|
if (!eglChooseConfig(g_egl_dpy, attrib_ptr, &g_config, 1, &num_configs))
|
||||||
{
|
{
|
||||||
RARCH_ERR("[X/EGL]: eglChooseConfig failed with %x.\n", eglGetError());
|
RARCH_ERR("[X/EGL]: eglChooseConfig failed with 0x%x.\n", eglGetError());
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user