SL-19197 Fix for crash in LLRenderTarget::release

master
RunitaiLinden 2023-04-27 16:05:07 -05:00
parent 88adfdcee4
commit a3b1d0beb6
1 changed files with 6 additions and 6 deletions

View File

@ -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;
}