On Thu, 12 May 2011 23:11:21 +0900 "Sung W. Park" <sung...@gmail.com> said:

> Hi all,
> 
> I'm attaching a patch for Evas_GL that fixes a few minor bugs.
> For one, I had issues with stencil and depth format on OpenGL ES on a mobile
> device using FBO.
> 
> Here's a part of the patch as an example...
> (By the way, I'm covering 24bit format with 16bits on OpenGL ES for now... )
> 
> @@ -2112,7 +2113,12 @@
>        case EVAS_GL_DEPTH_BIT_8:
>        case EVAS_GL_DEPTH_BIT_16:
>        case EVAS_GL_DEPTH_BIT_24:
> +#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
> +         // 24 bit doesn't work... just cover it with 16 for now..
> +         sfc->rb_depth_fmt = GL_DEPTH_COMPONENT16;
> +#else
>           sfc->rb_depth_fmt = GL_DEPTH_COMPONENT;
> +#endif
>           break;
>        case EVAS_GL_DEPTH_BIT_32:
>        default:
> @@ -2128,7 +2134,11 @@
>        case EVAS_GL_STENCIL_BIT_2:
>        case EVAS_GL_STENCIL_BIT_4:
>        case EVAS_GL_STENCIL_BIT_8:
> +#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
> +         sfc->rb_stencil_fmt = GL_STENCIL_INDEX8;
> +#else
>           sfc->rb_stencil_fmt = GL_STENCIL_INDEX;
> +#endif
>           break;
>        case EVAS_GL_STENCIL_BIT_16:
>        default:
> @@ -2180,14 +2190,13 @@
>  }

hmmm... opengl-es doesn't do "generic" stencil and depth (ie give me the
default like desktop gl)? just fixed 16bit/8bit? rather odd. hrrrrmf

> Also, I've found a bug where deleting and recreating a surface wouldn't
> properly reattach the surface with the FBO in the context.  So that has been
> fixed here as well.

ok! in svn it is! :)

> The fixes are in the file that I'm attaching: evas_gl_minor_fixes.patch
> 
> Also, I'm attaching an evasglgears.c that I've ported from glesgears.
> It's still a bit messy but you can play around with it.  "left","right","up",
> "down" button works as well. To compile the program, you just need to do
> 
> ECORE_PKG = `pkg-config --cflags --libs evas ecore ecore-evas`
> 
> evasglgears: evasglgears.c
>       gcc -g -Wall -o $@ $< $(ECORE_PKG) -lm
> 
> You no longer need to link -lGL if you haven't noticed already.
> 
> let me know if the patch seems reasonable.

something odd.. have u noticed that the lighting is totally screwed?


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to