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 - IMG_Init and IMG_Quit for faster loading of multiple images
Summary: IMG_Init and IMG_Quit for faster loading of multiple images
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: All Windows (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 06:29 UTC by Mason Wheeler
Modified: 2009-09-26 02:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!