Greets, I’ve encountered an odd error with SDL_CreateRGBSurface() where
the app will /always/ crash if SDL_HWSURFACE is passed (if the app is in
fullscreen mode - hardware acceleration doesn’t occur in windowed mode,
yes?)
The surface created by SDL_SetVideoMode has already had SDL_HWSURFACE |
SDL_HWPALETTE | SDL_FULLSCREEN passed to it
Unfortunately, I only receive the messages
"Fatal signal: Bus Error (SDL Parachute Deployed)
buggy.app has exited with status 246."
in Project Builder, and SDL_GetError() returns NULL.
Any suggestions as to why? Would this be caused by having an
under-powered graphics card (only the usual 8Mb fitted to the 2000-ish
era iMacs; but which can’t store two 640x480 32bit images??? That’s only
~2Mb uncompressed???)
Maybe the source to the section in question will help, but I’ve already
re-coded it several times with no change to the app.
if(( theBufferSurface = SDL_CreateRGBSurface((( SDL_SWSURFACE *
( thePrefs.useHardwareAcceleration ^ 1 )) |
( SDL_HWSURFACE * thePrefs.useHardwareAcceleration )),
thePrefs.width,
thePrefs.height,
kPrefs_default__depth,
theSurface->format->Rmask,
theSurface->format->Gmask,
theSurface->format->Bmask,
theSurface->format->Amask )) == NULL )
Mark
“Opportunity is missed by most people because it is dressed in overalls
and looks like work.”
~Thomas Edison
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 1452 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031221/8fd7a49e/attachment.bin