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
%package devel
Summary: Development components for the evas package
-Group: Development/Libraries
+Group: Graphics & UI Framework/Development
Requires: %{name} = %{version}
%description devel
%package examples
Summary: Examples for the evas package
-Group: Development/Libraries
+Group: Graphics & UI Framework/Development
Requires: %{name}-devel = %{version}
%description examples
}
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)
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:
return 0;
}
- // Do Packed Depth24_Stencil8 Later...
-
return 1;
}
}
// 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;