FBO tweaks. Release multisample fbo in LLPipeline::releaseScreenBuffers, and fixed LLRenderBuffer::mInternalFormat falling out of sync with LLRenderBuffer::mTex.
This commit is contained in:
@@ -793,6 +793,7 @@ bool LLMultisampleBuffer::addColorAttachment(U32 color_fmt)
|
||||
}
|
||||
|
||||
mTex.push_back(tex);
|
||||
mInternalFormat.push_back(color_fmt);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -693,6 +693,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
|
||||
}
|
||||
|
||||
mSampleBuffer.release();
|
||||
mScreen.release();
|
||||
|
||||
if (LLPipeline::sRenderDeferred)
|
||||
{
|
||||
@@ -906,6 +907,8 @@ void LLPipeline::releaseScreenBuffers()
|
||||
{
|
||||
mShadow[i].release();
|
||||
}
|
||||
|
||||
mSampleBuffer.release();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user