summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-25 16:50:45 +0200
committerYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-25 16:50:45 +0200
commitbac40450646460466d4d7f266ef6185b6ee0e981 (patch)
treef95a582f20e347185d6c44ce426bf8b4aec659cb /indra/llimage
parentf9e12e9f6b614db645c79c13795c1a1d67bae7fd (diff)
parent410e105f5293813dc63542414382e67273ab1d52 (diff)
merge
--HG-- branch : product-engine
Diffstat (limited to 'indra/llimage')
-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()) );