From 667768b96b44dd45e325a49aa9f72a0100c206c3 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 5 Oct 2015 16:20:58 -0700 Subject: [PATCH] text-freetype2: Fix garbled rendering if face changed When using a text file with the source and the font face is changed, it would cause it to fail to update the glyphs and text accordingly. It would trigger an error jump at line 392 of text-freetype2.c, ultimately resulting in the text to render garbled after that. How to reproduce: Set the source to get text from a file, then just change the font face (but not the size or anything else). --- plugins/text-freetype2/text-freetype2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/text-freetype2/text-freetype2.c b/plugins/text-freetype2/text-freetype2.c index e6ceb0069..fa4860440 100644 --- a/plugins/text-freetype2/text-freetype2.c +++ b/plugins/text-freetype2/text-freetype2.c @@ -344,6 +344,7 @@ static void ft2_source_update(void *data, obs_data_t *settings) srcdata->font_name = NULL; srcdata->font_style = NULL; srcdata->max_h = 0; + vbuf_needs_update = true; } srcdata->font_name = bstrdup(font_name);