From: Carsten Haitzler (Rasterman) Date: Wed, 17 May 2017 05:32:08 +0000 (+0900) Subject: elm glview -> fix pvs studio caught typo in stencil bit mappings X-Git-Tag: upstream/1.20.0~1035 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58a40d6f8a5442882645e38b29efee8ccc68e7c1;p=platform%2Fupstream%2Fefl.git elm glview -> fix pvs studio caught typo in stencil bit mappings this fixes CWE-570 on https://www.viva64.com/en/b/0508/ @fix --- diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c index 42109db..a5cf1e0 100644 --- a/src/lib/elementary/elm_glview.c +++ b/src/lib/elementary/elm_glview.c @@ -417,7 +417,7 @@ _elm_glview_mode_set(Eo *obj, Elm_Glview_Data *sd, Elm_GLView_Mode mode) const int mask = 7 << 9; if ((mode & mask) == (ELM_GLVIEW_STENCIL_1 & mask)) sd->config->stencil_bits = EVAS_GL_STENCIL_BIT_1; - else if ((mode & mask) == (ELM_GLVIEW_STENCIL_1 & mask)) + else if ((mode & mask) == (ELM_GLVIEW_STENCIL_2 & mask)) sd->config->stencil_bits = EVAS_GL_STENCIL_BIT_2; else if ((mode & mask) == (ELM_GLVIEW_STENCIL_4 & mask)) sd->config->stencil_bits = EVAS_GL_STENCIL_BIT_4;