diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-04-27 16:05:07 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-04-27 16:05:07 -0500 |
commit | a3b1d0beb610338d9f7c9c6618bc15bc7e9be40d (patch) | |
tree | 29ab3f24e9a0ea1859635ca80cb91621cea0ec70 /indra | |
parent | 88adfdcee4941dbc57725c8251c3435fbca1792e (diff) |
SL-19197 Fix for crash in LLRenderTarget::release
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llrender/llrendertarget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index 629664b76d..88c48e5166 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -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; } |