]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.cpp
Adapt to Collection API changes
[libs/gltk.git] / source / graphic.cpp
index 7b8128c5b61e22e05772a7cc1bef6467a706d040..005d30fb4ef8f7929326093766d49ae62332dcbe 100644 (file)
@@ -88,7 +88,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());
 }