diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llimage/llimagedxt.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llimage/llimagedxt.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llimage/llimagedxt.cpp b/linden/indra/llimage/llimagedxt.cpp index 6676366..22d7557 100644 --- a/linden/indra/llimage/llimagedxt.cpp +++ b/linden/indra/llimage/llimagedxt.cpp | |||
@@ -3,6 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (c) 2001-2007, Linden Research, Inc. | 4 | * Copyright (c) 2001-2007, Linden Research, Inc. |
5 | * | 5 | * |
6 | * Second Life Viewer Source Code | ||
6 | * The source code in this file ("Source Code") is provided by Linden Lab | 7 | * The source code in this file ("Source Code") is provided by Linden Lab |
7 | * to you under the terms of the GNU General Public License, version 2.0 | 8 | * to you under the terms of the GNU General Public License, version 2.0 |
8 | * ("GPL"), unless you have obtained a separate licensing agreement | 9 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -295,7 +296,10 @@ BOOL LLImageDXT::getMipData(LLPointer<LLImageRaw>& raw, S32 discard) | |||
295 | llerrs << "Request for invalid discard level" << llendl; | 296 | llerrs << "Request for invalid discard level" << llendl; |
296 | } | 297 | } |
297 | U8* data = getData() + getMipOffset(discard); | 298 | U8* data = getData() + getMipOffset(discard); |
298 | S32 width, height; | 299 | // I'm not sure these are the correct initial values for height and width, |
300 | // but previously they were being used uninitialized. JC | ||
301 | S32 width = raw->getWidth(); | ||
302 | S32 height = raw->getHeight(); | ||
299 | calcDiscardWidthHeight(discard, mFileFormat, width, height); | 303 | calcDiscardWidthHeight(discard, mFileFormat, width, height); |
300 | raw = new LLImageRaw(data, width, height, getComponents()); | 304 | raw = new LLImageRaw(data, width, height, getComponents()); |
301 | return TRUE; | 305 | return TRUE; |