elm glview -> fix pvs studio caught typo in stencil bit mappings

this fixes CWE-570 on https://www.viva64.com/en/b/0508/

@fix
This commit is contained in:
Carsten Haitzler 2017-05-17 14:32:08 +09:00
parent d6d8d84b80
commit 58a40d6f8a
1 changed files with 1 additions and 1 deletions

View File

@ -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;