[SDL] SDL memory consuming
Gabriel Gambetta
ggambett at artech.com.uy
Wed Aug 20 12:31:02 PDT 2003
> This has bitten me before, also. What reason is there for
> SDL_DisplayFormatAlpha() not to free() the surface it is passed? I
> can't think of a case where someone would convert a surface to match
> the screen format, then use both the old and the new surface
I can't, either, but a general purpose library should be, well, general
purpose.
Right now, you can free() the old surface if you want. Maybe someone can
find a use for it.
OTOH, if SDL_DisplayFormatAlpha() did it automatically, the case we
can't
think of would be impossible to do.
Sam should answer this question, but I guess the reason is something
like this.
This is how I would design an API, anyway.
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
More information about the SDL
mailing list