summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-01-11 21:06:33 +0100
committerJan Ekström <jeebjp@gmail.com>2022-01-11 23:45:08 +0200
commiteca78ee9259bd477e6a8073165e3ebe22bc4423e (patch)
tree665685740695b89bb19a8b7a3615bb24ceb6a938 /video/out
parent9e2c0b8baa3f9ccba997129a1c1023f61611e4dd (diff)
downloadmpv-eca78ee9259bd477e6a8073165e3ebe22bc4423e.tar.bz2
mpv-eca78ee9259bd477e6a8073165e3ebe22bc4423e.tar.xz
vo_gpu_next: fix SUBBITMAP_BGRA
The only way to fix the channel order here is to create the texture with bgra format. Incidentally, there used to be a way to set the component map for overlays directly, but no more. Shouldn't matter since everything supports bgra8 anyways, though. Fixes #9699
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_gpu_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 40b142bc50..8b1dec7f45 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -1153,7 +1153,7 @@ static int preinit(struct vo *vo)
p->rr = pl_renderer_create(p->pllog, p->gpu);
p->queue = pl_queue_create(p->gpu);
p->osd_fmt[SUBBITMAP_LIBASS] = pl_find_named_fmt(p->gpu, "r8");
- p->osd_fmt[SUBBITMAP_BGRA] = pl_find_named_fmt(p->gpu, "rgba8");
+ p->osd_fmt[SUBBITMAP_BGRA] = pl_find_named_fmt(p->gpu, "bgra8");
char *cache_file = get_cache_file(p);
if (cache_file) {