diff options
author | wm4 <wm4@nowhere> | 2015-01-07 21:13:26 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:09 +0900 |
commit | 6d7eb8346ac19f7106ba7416d137ca45d57bb7e7 (patch) | |
tree | 6432f757ed5cf917420448513e540bf522ba4ed3 | |
parent | cd99121185930d1a4bc4c7e4c146976931e31882 (diff) | |
download | mpv-6d7eb8346ac19f7106ba7416d137ca45d57bb7e7.tar.bz2 mpv-6d7eb8346ac19f7106ba7416d137ca45d57bb7e7.tar.xz |
x11: always use glXGetProcAddressARB()
glXGetProcAddress() is outdated, and as far as I know doesn't give all
the guarantees the "new" ARB function gives.
Probably doesn't matter too much, because until now it always appeared
to work. On the other hand, since this function is (bogusly) used only
on the gl3 code path, it could have happened that users hit this, and
just reverted to vo_opengl_old instead.
-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 5fe43e54f7..2bc567ccae 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -122,7 +122,7 @@ static bool create_context_x11_gl3(struct MPGLContext *ctx, bool debug) glx_ctx->context = context; - mpgl_load_functions(ctx->gl, (void *)glXGetProcAddress, glxstr, vo->log); + mpgl_load_functions(ctx->gl, (void *)glXGetProcAddressARB, glxstr, vo->log); if (!glXIsDirect(vo->x11->display, context)) ctx->gl->mpgl_caps &= ~MPGL_CAP_NO_SW; |