]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.cpp
Improve comments of the Layout class
[libs/gltk.git] / source / graphic.cpp
index db2afa2cfa0340018b2424cc18865a2ae5a51b85..005d30fb4ef8f7929326093766d49ae62332dcbe 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/gl/immediate.h>
 #include "graphic.h"
 #include "resources.h"
@@ -95,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());
 }