summaryrefslogtreecommitdiff
path: root/indra/llimage/llimage.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-01-25 14:48:39 +0200
committerMike Antipov <mantipov@productengine.com>2010-01-25 14:48:39 +0200
commiteff95bbea9bb9234e9df9fca7f5bc033f1b99358 (patch)
treec390c131bffaa95f2c100941cce02ec20186c390 /indra/llimage/llimage.cpp
parent088056c5bf4adc589c7fcc65236b90a466e59705 (diff)
parent7094921d1f235ff45cc5b3ef58b64c2812c8676f (diff)
Merge with default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/llimage/llimage.cpp')
-rw-r--r--indra/llimage/llimage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp
index 575ad5363d..e02be6c8c1 100644
--- a/indra/llimage/llimage.cpp
+++ b/indra/llimage/llimage.cpp
@@ -668,6 +668,12 @@ void LLImageRaw::fill( const LLColor4U& color )
// Src and dst can be any size. Src and dst can each have 3 or 4 components.
void LLImageRaw::copy(LLImageRaw* src)
{
+ if (!src)
+ {
+ llwarns << "LLImageRaw::copy called with a null src pointer" << llendl;
+ return;
+ }
+
LLImageRaw* dst = this; // Just for clarity.
llassert( (3 == src->getComponents()) || (4 == src->getComponents()) );