On 04/21/2010 07:35 AM, Phil wrote:
> Hello,
>
> I have compiled Clutter 1.2.5 with the eglnative/gles backend. The colour
> channels of textures seem to be switched when the format is not RGBA.
> I have noticed the following:
> * if the texture is loaded from a file (e.g. PNG) it works fine
> (gdk-pixbuf is
> used). gdk-pixbuf uses RGBA as internal format. Thus, I think it works in
> contrast to the other cases below.
> * If I load data from memory using clutter_texture_set_from_rgb_data () the
> issue with the switched red and blue colour channel appears. The flag
> CLUTTER_TEXTURE_RGB_FLAG_BGR does not seem to have an effect.
> * If the texture is a cairo texture (cairo uses ARGB internally) the same
> problem is present.
I've noticed this as well, and for this reason we're sticking with
clutter 1.0.x for our project. It seems there are quite a few
regressions to the GLES backend in 1.2 (not to mention that the eglx
backend doesn't work[1]). I've been meaning to find time to try to
categorize the problems and file bugs, but I've been far too busy.
Glad someone else has noticed the reversed color channel problems, though...
-brian
[1] http://bugzilla.o-hand.com/show_bug.cgi?id=2056 -- shame no one's
looked at my patch.
--
To unsubscribe send a mail to [email protected]