-/* $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"
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());
}