Merge "change {without x} to {with x}" into tizen accepted/tizen/mobile accepted/tizen/generic/20140106.140304 accepted/tizen/ivi/20131219.023427 accepted/tizen/ivi/20131220.021454 accepted/tizen/mobile/20131218.175207 accepted/tizen/mobile/20131220.085321 submit/tizen/20131218.093400 submit/tizen/20131220.021737
authorWang Quanxian <quanxian.wang@intel.com>
Wed, 18 Dec 2013 08:31:33 +0000 (00:31 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 18 Dec 2013 08:31:33 +0000 (00:31 -0800)
packaging/evas.spec
src/modules/engines/wayland_egl/evas_engine.c

index 8475afd..91f477d 100644 (file)
@@ -4,10 +4,10 @@
 Name:           evas
 Version:        1.7.8
 Release:        1
-License:        BSD 2-clause
+License:        BSD-2-Clause
 Summary:        Multi-platform Canvas Library
 Url:            http://www.enlightenment.org/
-Group:          Graphics/EFL
+Group:          Graphics & UI Framework/Libraries
 Source0:        evas-%{version}.tar.bz2
 Source1001:    evas.manifest
 BuildRequires:  doxygen
@@ -45,7 +45,7 @@ images, alpha-blend objects much and more.
 
 %package devel
 Summary:        Development components for the evas package
-Group:          Development/Libraries
+Group:          Graphics & UI Framework/Development
 Requires:       %{name} = %{version}
 
 %description devel
@@ -53,7 +53,7 @@ Development files for evas
 
 %package examples
 Summary:        Examples for the evas package
-Group:          Development/Libraries
+Group:          Graphics & UI Framework/Development
 Requires:       %{name}-devel = %{version}
 
 %description examples
index c32223e..3bed4ed 100644 (file)
@@ -2109,7 +2109,7 @@ eng_canvas_alpha_get(void *data, void *info __UNUSED__)
 }
 
 static int
-_set_internal_config(Render_Engine_GL_Surface *sfc, Evas_GL_Config *cfg)
+_set_internal_config(Render_Engine *re, Render_Engine_GL_Surface *sfc, Evas_GL_Config *cfg)
 {
    // Also initialize pixel format here as well...
    switch(cfg->color_format)
@@ -2151,7 +2151,17 @@ _set_internal_config(Render_Engine_GL_Surface *sfc, Evas_GL_Config *cfg)
       case EVAS_GL_STENCIL_BIT_2:
       case EVAS_GL_STENCIL_BIT_4:
       case EVAS_GL_STENCIL_BIT_8:
-         sfc->rb_stencil_fmt = GL_STENCIL_INDEX8;
+         if ((cfg->depth_bits != EVAS_GL_DEPTH_NONE) &&
+             re->gl_cap.depth_24_stencil_8[0])
+           {
+               sfc->rb_depth_stencil_fmt = re->gl_cap.depth_24_stencil_8[0];
+               sfc->rb_depth_fmt = re->gl_cap.depth_24_stencil_8[0];
+               sfc->rb_stencil_fmt = re->gl_cap.depth_24_stencil_8[0];
+           }
+         else
+           {
+               sfc->rb_stencil_fmt = GL_STENCIL_INDEX8;
+           }
          break;
       case EVAS_GL_STENCIL_BIT_16:
       default:
@@ -2159,8 +2169,6 @@ _set_internal_config(Render_Engine_GL_Surface *sfc, Evas_GL_Config *cfg)
          return 0;
      }
 
-   // Do Packed Depth24_Stencil8 Later...
-
    return 1;
 }
 
@@ -2595,7 +2603,7 @@ eng_gl_surface_create(void *data, void *config, int w, int h)
      }
 
    // Set the internal format based on the config
-   if (!_set_internal_config(sfc, cfg))
+   if (!_set_internal_config(re, sfc, cfg))
      {
         ERR("Unsupported Format!");
         goto finish;