Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-22 16:02:48 +0000
committerStijn Buys <ingar@osirion.org>2014-12-22 16:02:48 +0000
commit871552eab28d07c3aaf0cabb5fb167c0eb365bdf (patch)
tree0c91777d067e3b5323070b458c1affd6f11669da /src/render
parenta5aef07b4a2b85933f3a2f358a4d1b6fe27948b7 (diff)
Fixed a bug where the lad/savegame dialog wouldn't show the screenshot of the first selected savegame,
minor code cleamups in material handling.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/textures.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/textures.cc b/src/render/textures.cc
index bd75a45..15c9bd5 100644
--- a/src/render/textures.cc
+++ b/src/render/textures.cc
@@ -414,7 +414,7 @@ size_t Textures::bind(const size_t texture, const bool filter)
void Textures::image_loader(model::Layer *layer)
{
if (layer->texture().size() > 0 ) {
- size_t id = load(layer->texture());
+ size_t id = load(layer->texture().c_str());
layer->set_texture_id(id);
layer->set_size(texture_size[id]);
}