SDL_image Access Violation

Well, I reconfigured my environment from scratch, and upgraded to SDL_Image 1.2.9. Now IMG_Load returns a null pointer when passed the name of a PNG image. IMG_GetError returns an empty string, so I have no clue what the problem is. However, IMG_Load appears to work when loading BMP files.

Do I need to do something extra to configure SDL_Image to work with PNG images?

This should be fixed by SDL_image 1.2.10 (you can see the pre-release
at http://www.libsdl.org/tmp/SDL_image)

If you’re on Windows, you’ll need to put libpng12-0.dll and zlib1.dll
in the directory with your application for PNG support.

See ya!On Sat, Nov 14, 2009 at 4:10 PM, Postal76 wrote:

Well, I reconfigured my environment from scratch, and upgraded to SDL_Image
1.2.9. Now IMG_Load returns a null pointer when passed the name of a PNG
image. IMG_GetError returns an empty string, so I have no clue what the
problem is. However, IMG_Load appears to work when loading BMP files.

Do I need to do something extra to configure SDL_Image to work with PNG
images?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC