diff options
author | Niklas Haas <git@haasn.xyz> | 2017-08-27 13:28:51 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-27 14:36:28 +0200 |
commit | 7baa18d5f8a4c663cd20e709c059c44364020f47 (patch) | |
tree | f379c6b97b8543c8af93ed2630e55f44388443c7 /video | |
parent | 1d47473a7bb49663c197efa9a6ff8d836a9c1693 (diff) | |
download | mpv-7baa18d5f8a4c663cd20e709c059c44364020f47.tar.bz2 mpv-7baa18d5f8a4c663cd20e709c059c44364020f47.tar.xz |
vo_opengl: fix misleading comment in ra.h
tex_upload is not just for buffers
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/ra.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h index 4a728fbb5f..f78eff82c9 100644 --- a/video/out/opengl/ra.h +++ b/video/out/opengl/ra.h @@ -335,12 +335,12 @@ struct ra_fns { void (*tex_destroy)(struct ra *ra, struct ra_tex *tex); - // Copy the contents of a buffer to a texture. This is an extremely common - // operation. The contents of the buffer must exactly match the format of - // the image - conversions between bit depth etc. are not supported. - // The buffer *may* be marked as "in use" while this operation is going on, - // and the contents must not be touched again by the API user until - // buf_poll returns true. Returns whether successful. + // Upload data to a texture. This is an extremely common operation. When + // using a buffer, the contants of the buffer must exactly match the image + // - conversions between bit depth etc. are not supported. The buffer *may* + // be marked as "in use" while this operation is going on, and the contents + // must not be touched again by the API user until buf_poll returns true. + // Returns whether successful. bool (*tex_upload)(struct ra *ra, const struct ra_tex_upload_params *params); // Create a buffer. This can be used as a persistently mapped buffer, |