diff options
author | wm4 <wm4@nowhere> | 2017-07-29 20:12:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-29 20:12:43 +0200 |
commit | 0f9fcf0ed4ecb54eaadbddd3cbbc14d39ab93227 (patch) | |
tree | 391346a8333d9d3dcf692c853310839a4556b164 /video/vdpau.h | |
parent | 6fcc09ff3d0db649ff7a8d9fdcb49c0d0b700905 (diff) | |
download | mpv-0f9fcf0ed4ecb54eaadbddd3cbbc14d39ab93227.tar.bz2 mpv-0f9fcf0ed4ecb54eaadbddd3cbbc14d39ab93227.tar.xz |
vo_opengl: do not use GL format conversion on texture upload
The dither texture data is created as a float array, but uploaded to a
texture with GL_R16 as internal format. We relied on GL to do the
conversion from float to uint16_t. Not all GL variants even support
this: GLES does not provide this conversion (one of the reasons why this
code has a float16 code path). Also, ra is not going to do this. So just
convert on the fly.
Still keep the float16 texture format fallback, because not all GLES
implementations provide GL_R16.
There is some possibility that we'll need to provide some kind of upload
conversion anyway for float->float16. We still rely on GL doing this
implicitly, and all GL variants support it, but with RA there might be
the need for explicit conversion. Even then, it might be best to reduce
the number of conversion cases. I'll worry about this later.
Diffstat (limited to 'video/vdpau.h')
0 files changed, 0 insertions, 0 deletions