We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 752

Summary: IMG_Init and IMG_Quit for faster loading of multiple images
Product: SDL_image Reporter: Mason Wheeler <masonwheeler>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: Windows (All)   

Description Mason Wheeler 2009-06-10 06:29:45 UTC
See http://lists.libsdl.org/pipermail/sdl-libsdl.org/2009-April/069705.html for the patch and the rationale for it.
Comment 1 Mason Wheeler 2009-06-29 21:05:00 UTC
After further testing, I've found that the patch needs to be revised a little.  The "initialized & CONSTANT_VALUE" checks need to be removed from IMG_Init, as they make it impossible to nest initialization calls from different subsystems of the calling program.

Also, the line "initialized = result;" ought to read "initialized |= result;", again to allow for multiple calls to IMG_Init to work correctly.
Comment 2 Sam Lantinga 2009-09-26 02:10:04 UTC
This is in for the next release, thanks!