From 8404a354e546bd0636fcc1ebf2719f1dea7ad8e9 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 26 Aug 2017 05:41:00 +0200 Subject: 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. --- video/out/opengl/ra.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3