commit | 1eb708e1e63425f63cbec91e0227f88ad44c45d4 | [log] [tgz] |
---|---|---|
author | Geoff Lang <geofflang@chromium.org> | Mon May 04 14:58:23 2015 -0400 |
committer | Geoff Lang <geofflang@chromium.org> | Thu May 07 14:47:16 2015 +0000 |
tree | e2261b4ee408c3290542a6003b3b98c8403045de | |
parent | 716cc88e1470839c7ad6625f59d7b3038a78da7f [diff] [blame] |
Clear cached state when deleting GL objects. Change-Id: I84eac9b3796858e5e19e26851ad83baa1f9b6af2 Reviewed-on: https://chromium-review.googlesource.com/269142 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/renderer/gl/RenderbufferGL.cpp b/src/libANGLE/renderer/gl/RenderbufferGL.cpp index dcfd7bb..d1a2aa7 100644 --- a/src/libANGLE/renderer/gl/RenderbufferGL.cpp +++ b/src/libANGLE/renderer/gl/RenderbufferGL.cpp
@@ -30,11 +30,8 @@ RenderbufferGL::~RenderbufferGL() { - if (mRenderbufferID != 0) - { - mFunctions->deleteRenderbuffers(1, &mRenderbufferID); - mRenderbufferID = 0; - } + mStateManager->deleteRenderbuffer(mRenderbufferID); + mRenderbufferID = 0; } gl::Error RenderbufferGL::setStorage(GLenum internalformat, size_t width, size_t height)