summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-04 22:21:14 +0100
committerwm4 <wm4@nowhere>2015-01-04 22:21:14 +0100
commita91f127246aa57940d22b6c1dbb2a55d31e0dc90 (patch)
treef9f56d4b5c075e48dc79f54d498289b16217c1e2
parente7b78bea65a8e039ed60586093d18ab81151b838 (diff)
downloadmpv-a91f127246aa57940d22b6c1dbb2a55d31e0dc90.tar.bz2
mpv-a91f127246aa57940d22b6c1dbb2a55d31e0dc90.tar.xz
client API: clarify some vo_opengl_cb requirements
Stupid drivers. I hope the problem described here isn't actually common.
-rw-r--r--libmpv/opengl_cb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpv/opengl_cb.h b/libmpv/opengl_cb.h
index 8f7e1df76d..042a5a46aa 100644
--- a/libmpv/opengl_cb.h
+++ b/libmpv/opengl_cb.h
@@ -152,6 +152,12 @@ void mpv_opengl_cb_set_update_callback(mpv_opengl_cb_context *ctx,
* checked whether extensions are really available.)
* The callback will be called from this function only
* (it is not stored and never used later).
+ * Usually, GL context APIs do this for you (e.g. with
+ * glXGetProcAddressARB or wglGetProcAddress), but
+ * some APIs do not always return pointers for all
+ * standard functions (even if present); in this case
+ * you have to compensate by looking up these functions
+ * yourself.
* @param get_proc_address_ctx arbitrary opaque user context passed to the
* get_proc_address callback
* @return error code (same as normal mpv_* API), including but not limited to: