aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage
diff options
context:
space:
mode:
authorthickbrick2011-02-24 19:09:20 +0200
committerthickbrick2011-02-24 19:09:20 +0200
commitcff413945bdf7423797ad82220a20aad65587671 (patch)
treee876feb53b663f42be749b4a394590adb594c275 /linden/indra/llimage
parentFix #778: Textures get stuck half fetched. (diff)
downloadmeta-impy-cff413945bdf7423797ad82220a20aad65587671.zip
meta-impy-cff413945bdf7423797ad82220a20aad65587671.tar.gz
meta-impy-cff413945bdf7423797ad82220a20aad65587671.tar.bz2
meta-impy-cff413945bdf7423797ad82220a20aad65587671.tar.xz
Workaround #726: SIGSEGV in memcpy in LLImageRaw::LLImageRaw with data=0
Not sure why this happens, but is related to mForceToSaveRawImage=TRUE (e.g. in the texture preview floater.) This workaround seems to work for Singularity, as suggested by Siana Gears.
Diffstat (limited to 'linden/indra/llimage')
-rw-r--r--linden/indra/llimage/llimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp
index 776c481..1df3793 100644
--- a/linden/indra/llimage/llimage.cpp
+++ b/linden/indra/llimage/llimage.cpp
@@ -269,7 +269,7 @@ LLImageRaw::LLImageRaw(U8 *data, U16 width, U16 height, S8 components)
269 : LLImageBase() 269 : LLImageBase()
270{ 270{
271 mMemType = LLMemType::MTYPE_IMAGERAW; 271 mMemType = LLMemType::MTYPE_IMAGERAW;
272 if(allocateDataSize(width, height, components)) 272 if(allocateDataSize(width, height, components) && data)
273 { 273 {
274 memcpy(getData(), data, width*height*components); 274 memcpy(getData(), data, width*height*components);
275 } 275 }