Hi all,
I created an Universal Binary on Mac OS X 10.4.11 on an Intel Mac Book.
This executes correctly and looks and behaves the way it was designed to
work. This application ( GameMaker ) uses OpenGL and SDL for rendering.
I then got hold of a Mac Mini, G4 1.42Gz PowerPC, running 10.4.11. Running
exactly the same Universal exe on the Mac Mini produces the correct
behaviour, but an incorrect appearance. On the Mac Mini there seems to be
serious issues with transparency and an overall pink tinge to the images
produced on screen.
- Has anyone seen this sort of thing before?
- Could this be an OpenGL driver issue? If so, how do I update drivers on
the Mac Mini because “Software Update” does not seem to pick up any new
drivers for the graphics card. - Any other suggestions?
I believe the error may be caused by the following IFDEFed code…
{$IFDEF CPUPOWERPC}
tempSurface := SDL_CreateRGBSurfaceFrom( aWordArray, aWidth, aHeight,
32, aWidth * 4, $FF000000, $00FF0000, $0000FF00, $000000FF );
{$ENDIF}
{$IFDEF CPUi386}
tempSurface := SDL_CreateRGBSurfaceFrom( aWordArray, aWidth, aHeight,
32, aWidth * 4, $000000FF, $0000FF00, $00FF0000, $FF000000 );
{$ENDIF}
{$IFDEF CPUARM}
tempSurface := SDL_CreateRGBSurfaceFrom( aWordArray, aWidth, aHeight,
32, aWidth * 4, $000000FF, $0000FF00, $00FF0000, $FF000000 );
{$ENDIF}
The CPUi386 code looks 100% correct, but the CPUPOWERPC does not. I’m not
familiar with the differences between how Mac OS X handles OpenGL on Intel
and PowerPC machines. I’m not really worried about CPUARM for now, but I’ve
left it there in case someone here knows that side of things as well.
I’m open to any suggestions.
Thanks,
Dominique.