forked from enlightenment/efl
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:
parent
d6d8d84b80
commit
58a40d6f8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue