diff options
author | wm4 <wm4@nowhere> | 2020-05-09 17:57:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-09 18:02:57 +0200 |
commit | 4019c113140ff4841607c84598f2ce5912464f9b (patch) | |
tree | a8705fd3a1ed7e8b9311988bc390934f396d5e79 /video/out/opengl/ra_gl.c | |
parent | d8002f1dde94771952b301f4ebe331c52bc71871 (diff) | |
download | mpv-4019c113140ff4841607c84598f2ce5912464f9b.tar.bz2 mpv-4019c113140ff4841607c84598f2ce5912464f9b.tar.xz |
video: fix rgb30 component order
Was broken with a zimg wrapper refucktor before the previous commit. In
addition, it seems this didn't match the vo_drm format, or the format
naming convention. So the order actually changes, and the format is
redefined. (The img_format.h comment was probably wrong.)
Change vo_gpu to the new format as well, so we can still test it.
Diffstat (limited to 'video/out/opengl/ra_gl.c')
-rw-r--r-- | video/out/opengl/ra_gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/ra_gl.c b/video/out/opengl/ra_gl.c index 9b409ccb71..b7deba9fbe 100644 --- a/video/out/opengl/ra_gl.c +++ b/video/out/opengl/ra_gl.c @@ -190,7 +190,7 @@ static int ra_init_gl(struct ra *ra, GL *gl) desc->num_planes = 1; desc->planes[0] = fmt; for (int i = 0; i < 3; i++) - desc->components[0][i] = i + 1; + desc->components[0][i] = 3 - i; desc->chroma_w = desc->chroma_h = 1; } if (strcmp(fmt->name, "appleyp") == 0) { |