text-freetype2: Fix empty text not updating source

Fixes a bug where if you update the source with empty text, it would
still continue to use the previous text value.
This commit is contained in:
jp9000 2021-04-30 18:30:12 -07:00
parent 60447872c0
commit 6e05e8b325

View File

@ -488,7 +488,7 @@ skip_font_load:
}
} else {
const char *tmp = obs_data_get_string(settings, "text");
if (!tmp || !*tmp)
if (!tmp)
goto error;
if (srcdata->text != NULL) {