]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.cpp
Adapt to DataFile changes
[libs/gltk.git] / source / graphic.cpp
index 3579610bf7a640696e4f97bbf928f828b252168f..611cdb4c790c4a4e16ff879260f72972cc37bacc 100644 (file)
@@ -74,7 +74,7 @@ Graphic::Loader::Loader(Graphic &g, Resources &r):
 
 void Graphic::Loader::texture(const string &n)
 {
-       graph.texture=&res.get<GL::Texture2D>(n);
+       graph.texture=res.get<GL::Texture2D>(n);
        graph.slice=Geometry(0, 0, graph.texture->get_width(), graph.texture->get_height());
 }