Commit cb62d86f by Geoff Lang Committed by Commit Bot

Don't delete framebuffers multiple times if they are bound multiple times.

BUG=angleproject:2107 Change-Id: Icaa4cf7c708a68d63b45699255ddd3ced00ee119 Reviewed-on: https://chromium-review.googlesource.com/700804 Commit-Queue: Geoff Lang <geofflang@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent baf5d945
...@@ -320,8 +320,8 @@ void StateManagerGL::deleteFramebuffer(GLuint fbo) ...@@ -320,8 +320,8 @@ void StateManagerGL::deleteFramebuffer(GLuint fbo)
static_cast<angle::FramebufferBinding>(binding)); static_cast<angle::FramebufferBinding>(binding));
bindFramebuffer(enumValue, 0); bindFramebuffer(enumValue, 0);
} }
mFunctions->deleteFramebuffers(1, &fbo);
} }
mFunctions->deleteFramebuffers(1, &fbo);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment