summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_context.c
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 /src/modules/evas/engines/gl_common/evas_gl_context.c
parent7ef8ab559d7821179ce012217a3d997a9cf4b850 (diff)
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
Diffstat (limited to '')
-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,
3078 gc->pipe[pn].region.type = SHD_MAP; 3078 gc->pipe[pn].region.type = SHD_MAP;
3079 gc->pipe[pn].shader.prog = prog; 3079 gc->pipe[pn].shader.prog = prog;
3080 gc->pipe[pn].shader.cur_tex = tex->pt->texture; 3080 gc->pipe[pn].shader.cur_tex = tex->pt->texture;
3081 gc->pipe[pn].shader.tex_target = GL_TEXTURE_2D;
3082
3081 if (utexture) 3083 if (utexture)
3082 { 3084 {
3083 gc->pipe[pn].shader.cur_texu = tex->ptu->texture; 3085 gc->pipe[pn].shader.cur_texu = tex->ptu->texture;