[GEM-dev] pix_share broken several ways

chris clepper cgc at humboldtblvd.com
Thu Jun 8 22:50:14 CEST 2006


On 6/8/06, james tittle <tigital at mac.com> wrote:
> ...either way, I think that one problem with setCSizeByFormat() is
> that it tries to also set type & format (ie. on macppc we want
> "GL_BGRA" instead of "GL_RGBA", yet we want to be lazy and not add an
> #ifdef to all instances of "setCSizeByFormat(GL_RGBA) in GEM...guess
> this means we need a little rewrite for macintel, too), but only
> returns "csize"...

I just changed the GL_UNSIGNED_*_REV to non _REV and it seems to work
ok.  I do have one strange patch where pix_movie is all messed up, but
other patches with pix_movie work fine.

The #ifdef is probably the most straightforward method for this -
although I am not sure what the best on to use for PPC or x86 is.
I've been using __VEC__ which is wrong, but I know it works as long as
the PPC build process sets the -faltivec flag.  Apple says not to use
__i386__ and __LITTLE_ENDIAN__ only if you must.  I suspect they say
that to use there own detection and btye swapping functions, but who
knows.

cgc




More information about the GEM-dev mailing list