diff options
Diffstat (limited to '')
-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 | { |