summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/ra_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/ra_gl.c')
-rw-r--r--video/out/opengl/ra_gl.c2
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) {