summaryrefslogtreecommitdiffstats
path: root/sub/sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/sub.c')
-rw-r--r--sub/sub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sub/sub.c b/sub/sub.c
index 3f1b08c185..182215310f 100644
--- a/sub/sub.c
+++ b/sub/sub.c
@@ -210,6 +210,10 @@ static bool render_object(struct osd_state *osd, struct osd_object *obj,
cached |= osd_conv_old_p_to_old(obj->cache[1], out_imgs);
}
+ if (formats[SUBBITMAP_RGBA] && out_imgs->format == SUBBITMAP_OLD_PLANAR) {
+ cached |= osd_conv_old_p_to_rgba(obj->cache[2], out_imgs);
+ }
+
if (cached)
obj->cached = *out_imgs;