summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorKadah_Coba <kadah.coba@gmail.com>2019-10-14 20:44:51 -0700
committerKadah_Coba <kadah.coba@gmail.com>2019-10-14 20:44:51 -0700
commitadd146291737c6b9b4d773b3a910c9506b4939b3 (patch)
treef43e349d7790ed7633eca114e886afbeca9bebc8 /indra/llimage
parent1e1707d532560583744bb877adfed11864f2db31 (diff)
parent379b480f0e9d6947f0da8f15dbcb7e7010f0509a (diff)
Merged in andreyl_productengine/486-copypaste
Diffstat (limited to 'indra/llimage')
-rw-r--r--indra/llimage/llimage.cpp2
-rw-r--r--indra/llimage/llimagebmp.cpp2
-rw-r--r--indra/llimage/llimageworker.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp
index 1a4dd2ca99..680fbf548f 100644
--- a/indra/llimage/llimage.cpp
+++ b/indra/llimage/llimage.cpp
@@ -594,7 +594,7 @@ void LLImage::initClass(bool use_new_byte_range, S32 minimal_reverse_byte_range_
{
sUseNewByteRange = use_new_byte_range;
sMinimalReverseByteRangePercent = minimal_reverse_byte_range_percent;
- sMutex = new LLMutex(NULL);
+ sMutex = new LLMutex();
}
//static
diff --git a/indra/llimage/llimagebmp.cpp b/indra/llimage/llimagebmp.cpp
index 867b2bb47b..90b7272efa 100644
--- a/indra/llimage/llimagebmp.cpp
+++ b/indra/llimage/llimagebmp.cpp
@@ -181,7 +181,7 @@ bool LLImageBMP::updateData()
}
}
else
- if( 12 <= header.mSize && 64 <= header.mSize )
+ if( 12 <= header.mSize && header.mSize <= 64 )
{
setLastError("OS/2 2.x BMP files are not supported");
return false;
diff --git a/indra/llimage/llimageworker.cpp b/indra/llimage/llimageworker.cpp
index 4875fe7001..5f42fba866 100644
--- a/indra/llimage/llimageworker.cpp
+++ b/indra/llimage/llimageworker.cpp
@@ -35,7 +35,7 @@
LLImageDecodeThread::LLImageDecodeThread(bool threaded)
: LLQueuedThread("imagedecode", threaded)
{
- mCreationMutex = new LLMutex(getAPRPool());
+ mCreationMutex = new LLMutex();
}
//virtual