SL-19197 Fix for crash in LLRenderTarget::release
parent
88adfdcee4
commit
a3b1d0beb6
|
|
@ -388,14 +388,14 @@ void LLRenderTarget::release()
|
|||
glBindFramebuffer(GL_FRAMEBUFFER, sCurFBO);
|
||||
}
|
||||
|
||||
if (mFBO == sCurFBO)
|
||||
{
|
||||
sCurFBO = 0;
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||
}
|
||||
|
||||
if (mFBO)
|
||||
{
|
||||
if (mFBO == sCurFBO)
|
||||
{
|
||||
sCurFBO = 0;
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||
}
|
||||
|
||||
glDeleteFramebuffers(1, (GLuint *) &mFBO);
|
||||
mFBO = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue