X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=3b0f4f9154648b88d7254cb6f575854de341193b;hb=be8ea35fe6eabe4c68d2d337634f21c63c964265;hp=f146bbc9a281b6f19423005dd6d45a3b5d5550ed;hpb=e7bc29984e91ee36555d6a4e4eece22170d10ba4;p=libs%2Fgltk.git diff --git a/source/resources.cpp b/source/resources.cpp index f146bbc..3b0f4f9 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -43,7 +43,7 @@ GL::Font *Resources::create_font(const string &name) GL::Texture2D *Resources::create_texture(const string &name) { RefPtr tex=new GL::Texture2D; - tex->image((path/(name+".png")).str()); + tex->load_image((path/(name+".png")).str()); tex->set_min_filter(GL::LINEAR); return tex.release(); } @@ -59,7 +59,7 @@ Resources::Loader::Loader(Resources &r): void Resources::Loader::default_font(const string &name) { - res.default_font=&res.get(name); + res.default_font=res.get(name); } void Resources::Loader::font(const string &name)