summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-04-29 01:57:32 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-04-29 01:57:32 +0000
commit6217b3fca759b49dede767c6c99a312d3482e720 (patch)
treecdbfc7131dcf194a6b27f6b370dfbfd1c759de3f /indra/llrender/llimagegl.cpp
parent16baf6c9d43fc29e697b5a460439ca664897450c (diff)
Fixed a bogus assert and a rare but obvious crash bug.
Reviewed by Palmer
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index d5ad38dff3..a7bfe64f92 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -628,7 +628,7 @@ void LLImageGL::setImage(const U8* data_in, BOOL data_hasmips)
{
S32 bytes = w * h * mComponents;
llassert(prev_mip_data);
- llassert(prev_mip_size == bytes);
+ llassert(prev_mip_size == bytes*4);
U8* new_data = new U8[bytes];
llassert_always(new_data);
LLImageBase::generateMip(prev_mip_data, new_data, w, h, mComponents);