Changeset 109 for trunk/src/lib/sdl12.cc


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/sdl12.cc

    r5 r109  
    191191{
    192192#       define NV_SDL_LOAD( symbol ) *(void **) (&symbol) = sdl_library.get(#symbol);
    193         static nv::library sdl_library( path );
     193        static nv::library sdl_library;
     194        if ( sdl_library.is_open() ) return true;
     195        sdl_library.open( path );
    194196
    195197/* SDL.h functions */
Note: See TracChangeset for help on using the changeset viewer.