Looks like SDL_image calls SDL to create surfaces. Is this to be
expected from libs and apps in general? If people do things like
malloc(sizeof(SDL_Surface)), glSDL will crash. (This won’t apply to
the real backend version, of course, since it’ll use the real backend
hooks instead of that unused1 field.)
I’m going to ditch the GLSDL_FIX_SURFACE() macro in glSDL and suggest
that people use SDL 1.2.5 or later with glSDL. The wrappers for SDL’s
built-in surface creation calls will be there, but I’ll drop the
SDL_image wrapper, since it’s not needed with SDL 1.2.5.
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -’
— http://olofson.net — http://www.reologica.se —