1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-12 18:07:12 +00:00

vo_opengl: fix misleading comment in ra.h

tex_upload is not just for buffers
This commit is contained in:
Niklas Haas 2017-08-27 13:28:51 +02:00
parent 1d47473a7b
commit 7baa18d5f8

View File

@ -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,