]> git.tdb.fi Git - libs/gltk.git/commitdiff
Add missing dependency to msppath
authorMikko Rasa <tdb@tdb.fi>
Sat, 29 Dec 2007 17:35:00 +0000 (17:35 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sat, 29 Dec 2007 17:35:00 +0000 (17:35 +0000)
Give the Resources instance to Font::Loader

Build
source/resources.cpp

diff --git a/Build b/Build
index c0dcafcf6819d5d7d1d48477ebc17d841e44cf2e..7afd6c03f4ccf2006ec4a5f1e517c9c1084d96b5 100644 (file)
--- a/Build
+++ b/Build
@@ -4,6 +4,7 @@ package "mspgltk"
 {
        require "mspgl";
        require "mspgbase";
+       require "msppath";
 
        library "mspgltk"
        {
index 2cfe022c1a1d74d5035aa855922dcc7ba9e5f0c8..b3ec3698d136a65268aa74c7115a09df7d218666 100644 (file)
@@ -71,7 +71,7 @@ void Resources::Loader::default_font(const string &name)
 void Resources::Loader::font(const string &name)
 {
        RefPtr<GL::Font> fnt=new GL::Font;
-       load_sub(*fnt);
+       load_sub(*fnt, res);
        res.add(name, fnt.get());
        if(!res.default_font)
                res.default_font=fnt.get();