Ignore:
Timestamp:
06/06/13 17:29:27 (12 years ago)
Author:
epyon
Message:
  • prevent multiple loadings of the same library
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sdl_image.cc

    r5 r109  
    3737{
    3838#       define NV_SDL_IMAGE_LOAD( symbol ) *(void **) (&symbol) = sdl_image_library.get(#symbol);
    39         static nv::library sdl_image_library( path );
     39        static nv::library sdl_image_library;
     40        if ( sdl_image_library.is_open() ) return true;
     41        sdl_image_library.open( path );
    4042
    4143        NV_SDL_IMAGE_LOAD( IMG_Linked_Version );
Note: See TracChangeset for help on using the changeset viewer.