提交 42305f1c 编写于 作者: J jp9000

text-freetype2: Don't draw anything if no text to draw

Under certain circumstances (when there's no text and a filter is
applied for example) the freetype 2 text source would still draw.
上级 737a66cb
......@@ -201,6 +201,7 @@ static void ft2_source_render(void *data, gs_effect_t *effect)
if (srcdata == NULL) return;
if (srcdata->tex == NULL || srcdata->vbuf == NULL) return;
if (srcdata->text == NULL || *srcdata->text == 0) return;
gs_reset_blend_state();
if (srcdata->outline_text) draw_outlines(srcdata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册