]> git.tdb.fi Git - libs/gltk.git/commitdiff
Fix incorrect usage of DataFile::load
authorMikko Rasa <tdb@tdb.fi>
Wed, 23 Jul 2008 00:07:31 +0000 (00:07 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 23 Jul 2008 00:07:31 +0000 (00:07 +0000)
source/resources.cpp

index 886b41654b571571e1cf545ac7d3d766f3f750cc..b1b129b757fd6a65139a9cfb00c6a8663e75af17 100644 (file)
@@ -40,7 +40,7 @@ const GL::Font &Resources::get_default_font() const
 GL::Font *Resources::create_font(const string &name)
 {
        RefPtr<GL::Font> fnt=new GL::Font;
-       DataFile::load<GL::Font, Resources &>(*fnt, (path/name).str(), *this);
+       DataFile::load(*fnt, (path/name).str(), *this);
        if(!default_font)
                default_font=fnt.get();
        return fnt.release();