diff options
author | wm4 <wm4@nowhere> | 2013-10-28 23:43:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-28 23:54:02 +0100 |
commit | 884b4600a478a1a4b56c53e71dd697ca6773494b (patch) | |
tree | ce3a4e91bf981a372f580d8440b147905353eb8b /video | |
parent | dceccaf1695a69227947501102977bbac240977b (diff) | |
download | mpv-884b4600a478a1a4b56c53e71dd697ca6773494b.tar.bz2 mpv-884b4600a478a1a4b56c53e71dd697ca6773494b.tar.xz |
gl_x11: change error message when GL3 context creation fails
On systems that provide legacy OpenGL (up to 2.1), but not GL3 and
later, creating a GL3 context will fail. We then revert to legacy GL.
Apparently the error message printed when the GL3 context creation
fails is confusing. We could just silence it, but there's still a X
error ("X11 error: GLXBadFBConfig"), which would be quite hard to
filter out. For one, it would require messing with the X11 error
handler, which doesn't even carry a context pointer (for application
private data), so we don't even want to touch it. Instead, change
the error message to inform the user what's actually happening: a
fallback to an older version of OpenGL.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c index 99239d0b30..2ed0bfbef5 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -123,7 +123,7 @@ static bool create_context_x11_gl3(struct MPGLContext *ctx, bool debug) glx_ctx->fbc, 0, True, context_attribs); if (!context) { - MP_FATAL(vo, "Could not create GLX context!\n"); + MP_ERR(vo, "Could not create GL3 context. Retrying with legacy context.\n"); return false; } |