graphics: only load image libraries once
This commit is contained in:
parent
b898bdbd1c
commit
5ff17bea77
@ -417,6 +417,7 @@ int load_sprite(sprite_t * sprite, char * filename) {
|
||||
static int librariesLoaded = 0;
|
||||
if (!librariesLoaded) {
|
||||
_load_format_libraries();
|
||||
librariesLoaded = 1;
|
||||
}
|
||||
|
||||
char * ext = extension_from_filename(filename);
|
||||
|
Loading…
Reference in New Issue
Block a user