On Jun 8, 2006, at 2:48 PM, IOhannes m zmoelnig wrote:
chris clepper wrote:
On 6/8/06, *IOhannes m zmoelnig* <zmoelnig@iem.at mailto:zmoelnig@iem.at> wrote:
I put a simple if statement in pix_share_write to replace the imageStruct call and it works fine. I think setCSizeByFormat() might not be working on the Mac. All those #ifdefs are hard to read! I will try to replace it with a single one for __APPLE__ and see if that helps.
i agree that it might be better to just have one big #ifdef _APPLE__ #endif instead of 4 of them would you change it or should i do it? (and honestly, i much prefer an #ifdef over an #ifndef for readability)
...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"...
weird, jamie
ps: finally getting thru some deadlines n'stuff, so I'll be a bit more active soon ;-)