[Cairo Evasgl Sample] Add evasgl config
authorhk57.kim <hk57.kim@samsung.com>
Mon, 5 Oct 2015 06:12:52 +0000 (15:12 +0900)
committerhk57.kim <hk57.kim@samsung.com>
Mon, 5 Oct 2015 06:12:52 +0000 (15:12 +0900)
Change-Id: I49843977a7590a10d504f3d570cdd34d83c90290
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/cairo_evasgl_sd_mn.htm
org.tizen.sampledescriptions/html/wearable_n/cairo_evasgl_sd_wn.htm

index a5f2204..4917751 100644 (file)
@@ -107,6 +107,8 @@ Evas_Native_Surface ns;
 ad-&gt;evas_gl = evas_gl_new(evas_object_evas_get(ad-&gt;img));
 ad-&gt;evas_gl_config = evas_gl_config_new();
 ad-&gt;evas_gl_config-&gt;color_format = EVAS_GL_RGBA_8888;
+ad-&gt;evas_gl_config-&gt;stencil_bits = EVAS_GL_STANCIL_BIT_8;
+ad-&gt;evas_gl_config-&gt;multisample_bits = EVAS_GL_MULTISAMPLE_MED;
 ad-&gt;evas_gl_surface = evas_gl_surface_create(ad-&gt;evas_gl, ad-&gt;evas_gl_config, ad-&gt;width, ad-&gt;height);
 ad-&gt;evas_gl_context = evas_gl_context_create(ad-&gt;evas_gl, NULL);
 evas_gl_native_surface_get(ad-&gt;evas_gl, ad-&gt;evas_gl_surface, &amp;ns);
@@ -279,4 +281,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 802283e..541bc8e 100644 (file)
@@ -107,6 +107,8 @@ Evas_Native_Surface ns;
 ad-&gt;evas_gl = evas_gl_new(evas_object_evas_get(ad-&gt;img));
 ad-&gt;evas_gl_config = evas_gl_config_new();
 ad-&gt;evas_gl_config-&gt;color_format = EVAS_GL_RGBA_8888;
+ad-&gt;evas_gl_config-&gt;stencil_bits = EVAS_GL_STANCIL_BIT_8;
+ad-&gt;evas_gl_config-&gt;multisample_bits = EVAS_GL_MULTISAMPLE_MED;
 ad-&gt;evas_gl_surface = evas_gl_surface_create(ad-&gt;evas_gl, ad-&gt;evas_gl_config, ad-&gt;width, ad-&gt;height);
 ad-&gt;evas_gl_context = evas_gl_context_create(ad-&gt;evas_gl, NULL);
 evas_gl_native_surface_get(ad-&gt;evas_gl, ad-&gt;evas_gl_surface, &amp;ns);
@@ -279,4 +281,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>