graphics: only load image libraries once

This commit is contained in:
K. Lange 2021-07-06 16:44:31 +09:00
parent b898bdbd1c
commit 5ff17bea77

View File

@ -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);