glview: fix a condition that is identical to previous 30/144230/2
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Wed, 16 Aug 2017 02:47:23 +0000 (11:47 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 17 Aug 2017 05:48:11 +0000 (05:48 +0000)
Change-Id: Ib41f90c406d83ce10851441280e3c2652e701ea4

src/lib/elm_glview.c

index b59ecc04b98399876331942e1143e35938b5a686..4b2ed73cb96728a027a2c70eddec5587a0a1f9e4 100644 (file)
@@ -381,7 +381,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;