Merge branch 'Fire-30873-NewPoser' of https://github.com/AngeldarkRaymaker/phoenix-firestorm into Fire-30873-NewPoser
commit
a0803a2aa9
|
|
@ -525,7 +525,7 @@ void LLViewerPartSim::destroyClass()
|
|||
//static
|
||||
bool LLViewerPartSim::shouldAddPart()
|
||||
{
|
||||
if (sParticleCount < MAX_PART_COUNT)
|
||||
if (sParticleCount >= MAX_PART_COUNT)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2620,6 +2620,11 @@ bool LLViewerFetchedTexture::doLoadedCallbacks()
|
|||
}
|
||||
}
|
||||
|
||||
if (need_readback)
|
||||
{
|
||||
readbackRawImage();
|
||||
}
|
||||
|
||||
//
|
||||
// Run raw/auxiliary data callbacks
|
||||
//
|
||||
|
|
@ -2869,10 +2874,22 @@ void LLViewerFetchedTexture::readbackRawImage()
|
|||
if (mGLTexturep.notNull() && mGLTexturep->getTexName() != 0 &&
|
||||
(mRawImage.isNull() || mRawImage->getWidth() < mGLTexturep->getWidth() || mRawImage->getHeight() < mGLTexturep->getHeight() ))
|
||||
{
|
||||
if (mRawImage.isNull())
|
||||
{
|
||||
sRawCount++;
|
||||
}
|
||||
mRawImage = new LLImageRaw();
|
||||
if (!mGLTexturep->readBackRaw(-1, mRawImage, false))
|
||||
{
|
||||
mRawImage = nullptr;
|
||||
mIsRawImageValid = false;
|
||||
mRawDiscardLevel = INVALID_DISCARD_LEVEL;
|
||||
sRawCount--;
|
||||
}
|
||||
else
|
||||
{
|
||||
mIsRawImageValid = true;
|
||||
mRawDiscardLevel = mGLTexturep->getDiscardLevel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue