summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-05-17 14:32:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-05-17 15:04:01 +0900
commit58a40d6f8a5442882645e38b29efee8ccc68e7c1 (patch)
treeafbff1cb496d26cc7ebf4f1d55316761520d8118
parentd6d8d84b80fd5a3b975fc0e4b1eaedcb3fc9dc7f (diff)
downloadefl-58a40d6f8a5442882645e38b29efee8ccc68e7c1.tar.gz
elm glview -> fix pvs studio caught typo in stencil bit mappings
this fixes CWE-570 on https://www.viva64.com/en/b/0508/ @fix
-rw-r--r--src/lib/elementary/elm_glview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c
index 42109dbb63..a5cf1e071f 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;