aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-08-14 17:13:24 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-14 17:13:24 -0400
commitc8ddf93707b9fe2afbb81fa610a8efb630603949 (patch)
treebad9addf1044c09365d1c5145e198eeab71a7733
parentevas: support wayland static engine loading (diff)
downloadefl-c8ddf93707b9fe2afbb81fa610a8efb630603949.tar.gz
evas gl: fix missing map texture target.
Summary: Map context missed setting texture target. I guess this is one of regression bugs in gl backend. When shader is flushed, it sets invalid texture target with map texture. That caused blank map 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. @fix Reviewers: #committers, ManMower Reviewed By: #committers, ManMower Subscribers: ManMower, cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6818
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c2
1 files changed, 2 insertions, 0 deletions
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 9a384d24de..577d00db9b 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -3078,6 +3078,8 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
gc->pipe[pn].region.type = SHD_MAP;
gc->pipe[pn].shader.prog = prog;
gc->pipe[pn].shader.cur_tex = tex->pt->texture;
+ gc->pipe[pn].shader.tex_target = GL_TEXTURE_2D;
+
if (utexture)
{
gc->pipe[pn].shader.cur_texu = tex->ptu->texture;