summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-26 05:41:00 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-27 14:36:00 +0200
commit8404a354e546bd0636fcc1ebf2719f1dea7ad8e9 (patch)
treec9090e02cc021d7d9ba3d2e17e9a2ab8cb67a635
parent7684fda6ac69265ca21cdf2f1d8ae8483bb36607 (diff)
downloadmpv-8404a354e546bd0636fcc1ebf2719f1dea7ad8e9.tar.bz2
mpv-8404a354e546bd0636fcc1ebf2719f1dea7ad8e9.tar.xz
vo_opengl: clarify RA_CAP_DIRECT_UPLOAD
This no longer concerns the API user except in as much as the API user probably wants to know whether or not PBOs are active, so keep around the CAP field even though it's mostly useless now.
-rw-r--r--video/out/opengl/ra.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h
index 6d77255180..23e69790a6 100644
--- a/video/out/opengl/ra.h
+++ b/video/out/opengl/ra.h
@@ -128,7 +128,8 @@ struct ra_tex_upload_params {
// Uploading from buffer:
struct ra_buf *buf; // Buffer to upload from (mutually exclusive with `src`)
size_t buf_offset; // Start of data within buffer (bytes)
- // Uploading directly: (requires RA_CAP_DIRECT_UPLOAD)
+ // Uploading directly: (Note: If RA_CAP_DIRECT_UPLOAD is not set, then this
+ // will be internally translated to a tex_upload buffer by the RA)
const void *src; // Address of data
// For 2D textures only:
struct mp_rect *rc; // Region to upload. NULL means entire image