diff options
author | wm4 <wm4@nowhere> | 2017-08-05 13:39:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-05 13:44:30 +0200 |
commit | dd096863fa00f1c0c9268932a46ddc321122f552 (patch) | |
tree | 49956dd4bcd2a0d12e298107f7aeeff7a61e28e4 /libmpv | |
parent | 8dd4ae13ffd5ff11b97b84bbb4fdfe6185eeeb50 (diff) | |
download | mpv-dd096863fa00f1c0c9268932a46ddc321122f552.tar.bz2 mpv-dd096863fa00f1c0c9268932a46ddc321122f552.tar.xz |
vo_opengl: make OSD code use ra for textures
This requires a silly extension to ra_fns.tex_upload: since the OSD
texture can be much larger than the actual OSD image data to upload, a
mechanism for uploading only to a small part of the texture is needed.
Otherwise, we'd have to realloc/copy the data, just to pad it, and then
pay for uploading the padding too.
The RA_TEX_UPLOAD_DISCARD flag is not interpreted by GL (not sure how
you'd tell GL about this), but it clarifies the API and might be
helpful if we support other backend APIs in the future.
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions