summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-28 13:04:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-28 13:07:13 +0900
commit02bff22d8f78450e8284e53618150bc258863c3e (patch)
treee4eaa843e5317e20be6206ebe71ef0bcb6e25cd7
parentb0ecb1fc907735d2fd8e8108a655b4ee79038712 (diff)
evas: Reset state to GL_TEXTURE_2D
This should fix an ERR message under gl_drm and probably an actual bug. This reverts 8f2cfdf4900e8e8b13f48c213512041e5f. 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
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c2
1 files changed, 1 insertions, 1 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 3d984e7e63..ec8fd826b6 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -1585,7 +1585,7 @@ evas_gl_common_context_target_surface_set(Evas_Engine_GL_Context *gc,
1585 gc->state.current.cur_texv = 0; 1585 gc->state.current.cur_texv = 0;
1586 gc->state.current.cur_texa = 0; 1586 gc->state.current.cur_texa = 0;
1587 gc->state.current.cur_texm = 0; 1587 gc->state.current.cur_texm = 0;
1588 gc->state.current.tex_target = -1; 1588 gc->state.current.tex_target = GL_TEXTURE_2D;
1589 gc->state.current.render_op = -1; 1589 gc->state.current.render_op = -1;
1590 gc->state.current.smooth = -1; 1590 gc->state.current.smooth = -1;
1591 gc->state.current.blend = -1; 1591 gc->state.current.blend = -1;