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
This commit is contained in:
Niklas Haas authored and Jan Ekström committed 2022-01-11 23:45:08 +02:00
1 parent 9e2c0b8baa
commit eca78ee925
1 file changed
+1 -1
+1 -1
View File
@@ -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) {