summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-17 16:45:28 +0100
committerwm4 <wm4@nowhere>2017-02-17 17:08:37 +0100
commite59e917e71d6e2220f5a6f751f604516ab3e6008 (patch)
tree1b520f0acf64fb422cd08411ebb7c165ade827d6 /video/out/opengl/formats.c
parent91a2ddfdd775a4db02c6fe32d7c348a479bb5d9e (diff)
downloadmpv-e59e917e71d6e2220f5a6f751f604516ab3e6008.tar.bz2
mpv-e59e917e71d6e2220f5a6f751f604516ab3e6008.tar.xz
vo_opengl: hwdec_osx: use new format setup function
We can drop the custom table. For some reason, the interop does not accept GL_RGB_RAW_422_APPLE as internal format for GL_RGB_422_APPLE, so switch the format table to use GL_RGB (this way both interop and real textures work the same). Another victim of the apparent requirement of exactly matching texture formats is kCVPixelFormatType_32BGRA. vo_opengl wants to handle this as normal RGBA texture, with a swizzle applied in the shader. CGLTexImageIOSurface2D() rejects this, because it wants the exact internal format. Just drop the format, because it's useless anyway. (Maybe this is a bit too fragile...)
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 229b3b6ad1..45cb96f8cb 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -88,9 +88,9 @@ const struct gl_format gl_formats[] = {
// Special formats.
{GL_RGB8, GL_RGB,
GL_UNSIGNED_SHORT_5_6_5, F_TF | F_GL2 | F_GL3},
- {GL_RGB_RAW_422_APPLE, GL_RGB_422_APPLE,
+ {GL_RGB, GL_RGB_422_APPLE,
GL_UNSIGNED_SHORT_8_8_APPLE, F_TF | F_APPL},
- {GL_RGB_RAW_422_APPLE, GL_RGB_422_APPLE,
+ {GL_RGB, GL_RGB_422_APPLE,
GL_UNSIGNED_SHORT_8_8_REV_APPLE, F_TF | F_APPL},
{0}