diff options
author | Jacek Antonelli | 2008-08-15 23:45:45 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:45 -0500 |
commit | b1831d23bfdd0c876ac8cf687d6d3cf02345e28e (patch) | |
tree | e977d6563859940ad05af08b7bc150f57a7cb548 /linden/indra/llimage/llimage.cpp | |
parent | Second Life viewer sources 1.20.3 (diff) | |
download | meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.zip meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.gz meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.bz2 meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.xz |
Second Life viewer sources 1.20.4
Diffstat (limited to 'linden/indra/llimage/llimage.cpp')
-rw-r--r-- | linden/indra/llimage/llimage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp index 3600cce..65d19de 100644 --- a/linden/indra/llimage/llimage.cpp +++ b/linden/indra/llimage/llimage.cpp | |||
@@ -768,8 +768,8 @@ void LLImageRaw::copyScaled( LLImageRaw* src ) | |||
768 | LLMemType mt1((LLMemType::EMemType)mMemType); | 768 | LLMemType mt1((LLMemType::EMemType)mMemType); |
769 | LLImageRaw* dst = this; // Just for clarity. | 769 | LLImageRaw* dst = this; // Just for clarity. |
770 | 770 | ||
771 | llassert( (1 == src->getComponents()) || (3 == src->getComponents()) || (4 == src->getComponents()) ); | 771 | llassert_always( (1 == src->getComponents()) || (3 == src->getComponents()) || (4 == src->getComponents()) ); |
772 | llassert( src->getComponents() == dst->getComponents() ); | 772 | llassert_always( src->getComponents() == dst->getComponents() ); |
773 | 773 | ||
774 | if( (src->getWidth() == dst->getWidth()) && (src->getHeight() == dst->getHeight()) ) | 774 | if( (src->getWidth() == dst->getWidth()) && (src->getHeight() == dst->getHeight()) ) |
775 | { | 775 | { |
@@ -779,6 +779,7 @@ void LLImageRaw::copyScaled( LLImageRaw* src ) | |||
779 | 779 | ||
780 | // Vertical | 780 | // Vertical |
781 | S32 temp_data_size = src->getWidth() * dst->getHeight() * getComponents(); | 781 | S32 temp_data_size = src->getWidth() * dst->getHeight() * getComponents(); |
782 | llassert_always(temp_data_size > 0); | ||
782 | U8* temp_buffer = new U8[ temp_data_size ]; | 783 | U8* temp_buffer = new U8[ temp_data_size ]; |
783 | for( S32 col = 0; col < src->getWidth(); col++ ) | 784 | for( S32 col = 0; col < src->getWidth(); col++ ) |
784 | { | 785 | { |