diff options
author | wm4 <wm4@nowhere> | 2017-08-08 17:53:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-08 17:53:19 +0200 |
commit | 7397e8ab42acd4dcb12943949e902e3df2738085 (patch) | |
tree | e2ae2522ae17dc49a9df862e5b18dd601d64298c /video/out/opengl/ra.h | |
parent | 6087f63003351812996823877a4abbd51a1f9530 (diff) | |
download | mpv-7397e8ab42acd4dcb12943949e902e3df2738085.tar.bz2 mpv-7397e8ab42acd4dcb12943949e902e3df2738085.tar.xz |
vo_opengl: add a hack for Apple's broken iOS hwdec stuff
As seen in hwdec_ios.m, it insists on using the legacy luminance alpha
formats for mapped textures.
Diffstat (limited to 'video/out/opengl/ra.h')
-rw-r--r-- | video/out/opengl/ra.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h index bc149c27ee..00d631b93e 100644 --- a/video/out/opengl/ra.h +++ b/video/out/opengl/ra.h @@ -26,6 +26,8 @@ struct ra { size_t max_shmem; // Set of supported texture formats. Must be added by RA backend at init time. + // If there are equivalent formats with different caveats, the preferred + // formats should have a lower index. (E.g. GLES3 should put rg8 before la.) struct ra_format **formats; int num_formats; @@ -61,7 +63,8 @@ struct ra_format { void *priv; enum ra_ctype ctype; // data type of each component bool ordered; // components are sequential in memory, and returned - // by the shader in memory order + // by the shader in memory order (the shader can + // return arbitrary values for unused components) int num_components; // component count, 0 if not applicable, max. 4 int component_size[4]; // in bits, all entries 0 if not applicable int component_depth[4]; // bits in use for each component, 0 if not applicable |