From a5f5209e9320a0f22c8aa50c7bde987845cb1a3b Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Tue, 29 Nov 2022 16:33:59 +0900 Subject: [PATCH] evas gl: fix missing font texture target. Summary: font context missed setting texture target. When shader is flushed, it sets invalid texture target with font texture. That caused broken text rendering, this could be observed temporary because gl pipe contexts are reusable and missing texture target means, it could use previous texture target values that mostly have GL_TEXTURE_2D. Change-Id: Iaa44cd28279da46362aff1dc392bcf2fff4e7138 --- src/modules/evas/engines/gl_common/evas_gl_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index 5db2e64..f4dbedf 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -2755,6 +2755,7 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc, gc->pipe[pn].shader.cy = 0; gc->pipe[pn].shader.cw = 0; gc->pipe[pn].shader.ch = 0; + gc->pipe[pn].shader.tex_target = GL_TEXTURE_2D; gc->pipe[pn].array.line = 0; gc->pipe[pn].array.use_vertex = 1; gc->pipe[pn].array.use_color = 1; -- 2.7.4