evas/gl_common: Reset current texture target with proper value when creating engine...
authorMinkyoung Kim <mer.kim@samsung.com>
Thu, 10 Dec 2015 07:40:15 +0000 (16:40 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 10 Dec 2015 07:50:11 +0000 (16:50 +0900)
Summary:
set current target with default value of GL_TEXTURE_2D.
target should be valid value.

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: wonsik, cedric, spacegrapher

Differential Revision: https://phab.enlightenment.org/D3423

src/modules/evas/engines/gl_common/evas_gl_context.c

index 04de885..00445d8 100644 (file)
@@ -691,6 +691,8 @@ evas_gl_common_context_new(void)
           }
      }
 
+   gc->state.current.tex_target = GL_TEXTURE_2D;
+
    if (!shared)
      {
         const char *ext;