evas: Reset state to GL_TEXTURE_2D

This should fix an ERR message under gl_drm and probably an
actual bug.

This reverts 8f2cfdf490.

I don't think the texture target should be part of the context
information. It should instead be a property of the texture.

Fixes T5171
This commit is contained in:
Jean-Philippe Andre 2017-02-28 13:04:31 +09:00
parent b0ecb1fc90
commit 02bff22d8f
1 changed files with 1 additions and 1 deletions

View File

@ -1585,7 +1585,7 @@ evas_gl_common_context_target_surface_set(Evas_Engine_GL_Context *gc,
gc->state.current.cur_texv = 0;
gc->state.current.cur_texa = 0;
gc->state.current.cur_texm = 0;
gc->state.current.tex_target = -1;
gc->state.current.tex_target = GL_TEXTURE_2D;
gc->state.current.render_op = -1;
gc->state.current.smooth = -1;
gc->state.current.blend = -1;