On Jun 8, 2006, at 4:50 PM, chris clepper wrote:
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.
...I didn't realize what you meant when you said "all messed up": if the colors are weird, it's probably a good indication that channels are outta order...I was thinking you meant "messed up" in a deeper sense ;-)
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.
...yeh, of course they have they're own (I think they call them "flippers"?)...I don't see any reason for us to use them, especially since we support ppc and intel cross-platform...so, I think it'd be fine to use:
#if defined(__APPLE__) && defined(__LITTLE_ENDIAN__) or #if defined(__APPLE__) && defined(__BIG_ENDIAN__)
jamie