mirror of
https://github.com/mpv-player/mpv
synced 2024-12-11 09:25:56 +00:00
video/egl_helpers: log error for eglCreateContext
This commit is contained in:
parent
91489c9466
commit
b3ca600acb
@ -203,7 +203,8 @@ static bool create_context(struct ra_ctx *ctx, EGLDisplay display,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!egl_ctx) {
|
if (!egl_ctx) {
|
||||||
MP_MSG(ctx, msgl, "Could not create EGL context for %s!\n", name);
|
MP_MSG(ctx, msgl, "Could not create EGL context for %s (error=%d)!\n",
|
||||||
|
name, eglGetError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user