summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-24 14:28:11 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-24 14:28:11 +0800
commit63339f477821174919877198e283390d75b7f5fd (patch)
tree293f7f33be20d95f9471c39969c0f054302321e0
parent4c7cd59a1a5ad0f737285e190bd229e29212428b (diff)
downloadelements-63339f477821174919877198e283390d75b7f5fd.tar.gz
elements-63339f477821174919877198e283390d75b7f5fd.tar.bz2
Adapt for new core API
-rw-r--r--src/texture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/texture.cpp b/src/texture.cpp
index d533313..a6a80fe 100644
--- a/src/texture.cpp
+++ b/src/texture.cpp
@@ -84,7 +84,8 @@ void
ElementTexture::setTexture (CompString path, int texSize, CompString name)
{
CompSize textureSize (texSize, texSize);
- textures = GLTexture::readImageToTexture (path, textureSize);
+ CompString pname ("elements");
+ textures = GLTexture::readImageToTexture (path, pname, textureSize);
width = texSize;
height = texSize;