summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-02 00:27:20 +0200
committerwm4 <wm4@nowhere>2015-07-02 00:28:25 +0200
commit89713808ada054df74fd413e02ea32023badf30d (patch)
tree2763f322e9dfabeb2c073805af32ece2b70b6e3a /video
parentc169292902f59adcb4bc6bcf8bd4db89d5ce2e78 (diff)
downloadmpv-89713808ada054df74fd413e02ea32023badf30d.tar.bz2
mpv-89713808ada054df74fd413e02ea32023badf30d.tar.xz
vo_opengl: X11 EGL: more detailed error reporting
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_x11egl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/video/out/gl_x11egl.c b/video/out/gl_x11egl.c
index 417d1526f9..c23ac70851 100644
--- a/video/out/gl_x11egl.c
+++ b/video/out/gl_x11egl.c
@@ -99,12 +99,16 @@ static bool config_window_x11_egl(struct MPGLContext *ctx, int flags)
struct vo *vo = ctx->vo;
bool es = flags & VOFLAG_GLES;
- if (!eglBindAPI(es ? EGL_OPENGL_ES_API : EGL_OPENGL_API))
+ if (!eglBindAPI(es ? EGL_OPENGL_ES_API : EGL_OPENGL_API)) {
+ MP_FATAL(vo, "Could not bind API (%s).\n", es ? "GLES" : "GL");
return false;
+ }
p->egl_display = eglGetDisplay(vo->x11->display);
- if (!eglInitialize(p->egl_display, NULL, NULL))
+ if (!eglInitialize(p->egl_display, NULL, NULL)) {
+ MP_FATAL(vo, "Could not initialize EGL.\n");
return false;
+ }
EGLConfig config = select_fb_config_egl(ctx, es);
if (!config)