Creates a new surface identical to the existing surface.
If the original surface has alternate images, the new surface will have a reference to them as well.
The returned surface should be freed with SDL_DestroySurface().
the surface to duplicate.
a copy of the surface or NULL on failure; call SDL_GetError() for more information.
SDL_DestroySurface
See Implementation
Creates a new surface identical to the existing surface.
If the original surface has alternate images, the new surface will have a reference to them as well.
The returned surface should be freed with SDL_DestroySurface().