evas gl: fix missing font texture target. 90/284890/1
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 29 Nov 2022 07:33:59 +0000 (16:33 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Wed, 30 Nov 2022 05:07:31 +0000 (14:07 +0900)
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

index 5db2e64..f4dbedf 100644 (file)
@@ -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;