evas engine: convert data without any possible loss. 23/205223/1
authorHermet Park <hermetpark@gmail.com>
Tue, 30 Apr 2019 08:13:32 +0000 (17:13 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 30 Apr 2019 08:18:59 +0000 (17:18 +0900)
Change-Id: I74237a280a8e0cae8ecb235dd720f3a352990ffd

src/modules/evas/engines/gl_x11/evas_x_main.c
src/modules/evas/engines/wayland_egl/evas_wl_main.c

index ec92cc4..0ba29cb 100755 (executable)
@@ -632,7 +632,7 @@ try_gles2:
    glXGetFBConfigAttrib(gw->disp, evis->config, GLX_FBCONFIG_ID, &gw->gl_context->glxcfg_rgb);
    glXGetFBConfigAttrib(gw->disp, evis2->config, GLX_FBCONFIG_ID, &gw->gl_context->glxcfg_rgba);
 #endif
-   gw->gl_context->msaa = (Eina_Bool) msaa_bits;
+   gw->gl_context->msaa = (Eina_Bool) !!msaa_bits;
    eng_window_use(gw);
    glsym_evas_gl_common_context_resize(gw->gl_context, w, h, rot, 1);
    gw->surf = 1;
index 25916c9..0f500e7 100755 (executable)
@@ -360,7 +360,7 @@ try_again:
 //TIZEN_ONLY(20171127): do not call ecore_wl2_window_buffer_attach
   gw->surf = EINA_TRUE;
 //
-  gw->gl_context->msaa = (Eina_Bool) gw->msaa_bits;
+  gw->gl_context->msaa = (Eina_Bool) !!gw->msaa_bits;
   return gw;
 }