From 171f273121ad95f3326ba22459f94002f1f892ff Mon Sep 17 00:00:00 2001 From: Henri Fousse Date: Sun, 15 Jan 2012 16:07:23 +0100 Subject: [PATCH] This fixes a problem where the string for wrapmodes in texture attributes is not properly returned (and cannot be parsed). When wrap options are set to default, this prevents the wrap mode in the texture attributes to be used. Instead, we always get 'black' behaviour. --- src/libtexture/imagecache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtexture/imagecache.cpp b/src/libtexture/imagecache.cpp index f10b6d488c..d282db4d18 100644 --- a/src/libtexture/imagecache.cpp +++ b/src/libtexture/imagecache.cpp @@ -502,7 +502,7 @@ ImageCacheFile::open (ImageCachePerThreadInfo *thread_info) } if ((p = spec.find_attribute ("wrapmodes", TypeDesc::STRING))) { - const char *wrapmodes = (const char *)p->data(); + const char *wrapmodes = *(const char **)p->data(); TextureOpt::parse_wrapmodes (wrapmodes, m_swrap, m_twrap); m_rwrap = m_swrap; // FIXME(volume) -- rwrap