jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1b049b6fba3dc47bf0345cc3bbfae169ad982919

commit 1b049b6fba3dc47bf0345cc3bbfae169ad982919
Author: Dongyeon Kim <dy5....@samsung.com>
Date:   Tue Sep 8 17:41:15 2015 +0900

    evas/gl_common: Do not set minus value to unsigned int
    
    Summary:
    cur_tex* are unsigned int, so minus value should not be set.
    Also, add cur_texa, cur_texm here.
    
    Test Plan: Local tests
    
    Reviewers: jpeg
    
    Subscribers: mer.kim, wonsik, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3036
---
 src/modules/evas/engines/gl_common/evas_gl_context.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 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 07af300..f9ba72e 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -1227,9 +1227,11 @@ 
evas_gl_common_context_target_surface_set(Evas_Engine_GL_Context *gc,
 
    gc->state.current.id = SHADER_LAST;
    gc->state.current.cur_prog = PRG_INVALID;
-   gc->state.current.cur_tex = -1;
-   gc->state.current.cur_texu = -1;
-   gc->state.current.cur_texv = -1;
+   gc->state.current.cur_tex = 0;
+   gc->state.current.cur_texu = 0;
+   gc->state.current.cur_texv = 0;
+   gc->state.current.cur_texa = 0;
+   gc->state.current.cur_texm = 0;
    gc->state.current.render_op = -1;
    gc->state.current.smooth = -1;
    gc->state.current.blend = -1;

-- 


Reply via email to