diff options
author | wm4 <wm4@nowhere> | 2017-08-07 19:18:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-07 19:18:58 +0200 |
commit | d45fbecbb5d8ba2c782cc419fa386f78b9473d82 (patch) | |
tree | c0549d6507f426bfa7d5f092a1fd7a56b7b95527 /video/out/opengl/ra_gl.c | |
parent | 47ea771b7a29b04e35276d38733f72970b4dd448 (diff) | |
download | mpv-d45fbecbb5d8ba2c782cc419fa386f78b9473d82.tar.bz2 mpv-d45fbecbb5d8ba2c782cc419fa386f78b9473d82.tar.xz |
vo_opengl: add another ra_format field to exclude insane formats
Generic description of pixel formats is hard. In this case, the Apple
special format for packed YUV could have been interpreted as a RGB
format with funny packing.
Diffstat (limited to 'video/out/opengl/ra_gl.c')
-rw-r--r-- | video/out/opengl/ra_gl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/ra_gl.c b/video/out/opengl/ra_gl.c index da6f5e92d1..f0b47c795e 100644 --- a/video/out/opengl/ra_gl.c +++ b/video/out/opengl/ra_gl.c @@ -55,6 +55,7 @@ static int ra_init_gl(struct ra *ra, GL *gl) .priv = (void *)gl_fmt, .ctype = gl_format_type(gl_fmt), .num_components = gl_format_components(gl_fmt->format), + .ordered = gl_fmt->format != GL_RGB_422_APPLE, .pixel_size = gl_bytes_per_pixel(gl_fmt->format, gl_fmt->type), .luminance_alpha = gl_fmt->format == GL_LUMINANCE_ALPHA, .linear_filter = gl_fmt->flags & F_TF, |