From eca78ee9259bd477e6a8073165e3ebe22bc4423e Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 11 Jan 2022 21:06:33 +0100 Subject: 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 --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') 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) { -- cgit v1.2.3