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

    r21 r109  
    148148{
    149149#       define NV_FREETYPE_LOAD( symbol ) *(void **) (&symbol) = freetype_library.get(#symbol);
    150         static nv::library freetype_library( path );
     150        static nv::library freetype_library;
     151        if ( freetype_library.is_open() ) return true;
     152        freetype_library.open( path );
    151153
    152154        NV_FREETYPE_LOAD( FT_Init_FreeType );
Note: See TracChangeset for help on using the changeset viewer.