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
This commit is contained in:
Hermet Park 2018-08-14 17:13:24 -04:00 committed by Mike Blumenkrantz
parent 7ef8ab559d
commit c8ddf93707
1 changed files with 2 additions and 0 deletions

View File

@ -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;