diff -u IMG.c IMG.c --- IMG.c 2012-02-22 16:42:35.321576504 +0200 +++ IMG.c 2012-02-27 18:00:04.296373152 +0200 @@ -203,6 +203,7 @@ return NULL; } +#if (SDL_VERSION_ATLEAST(1,3,0)) SDL_Texture *IMG_LoadTexture(SDL_Renderer *renderer, const char *file) { SDL_Texture *texture = NULL; @@ -235,6 +236,7 @@ } return texture; } +#endif /* Invert the alpha of a surface for use with OpenGL This function is a no-op and only kept for backwards compatibility. diff -u SDL_image.h SDL_image.h --- SDL_image.h 2012-02-22 16:42:35.333576501 +0200 +++ SDL_image.h 2012-02-27 18:01:31.884372349 +0200 @@ -85,11 +85,13 @@ extern DECLSPEC SDL_Surface * SDLCALL IMG_Load(const char *file); extern DECLSPEC SDL_Surface * SDLCALL IMG_Load_RW(SDL_RWops *src, int freesrc); +#if (SDL_VERSION_ATLEAST(1,3,0)) /* Load an image directly into a render texture. */ extern DECLSPEC SDL_Texture * SDLCALL IMG_LoadTexture(SDL_Renderer *renderer, const char *file); extern DECLSPEC SDL_Texture * SDLCALL IMG_LoadTexture_RW(SDL_Renderer *renderer, SDL_RWops *src, int freesrc); extern DECLSPEC SDL_Texture * SDLCALL IMG_LoadTextureTyped_RW(SDL_Renderer *renderer, SDL_RWops *src, int freesrc, const char *type); +#endif /* Invert the alpha of a surface for use with OpenGL This function is now a no-op, and only provided for backwards compatibility.