Commit d3e0e84c by Geoff Lang Committed by Commit Bot

Don't call Texture::onDestroy twice for the zero textures.

The BindingPointer will call onDestroy when all references are removed, no need to do it explicitly. BUG=angleproject:3070 Change-Id: Ic5dd4da8f73e204d26d9d3a3c6e1eff9fded5411 Reviewed-on: https://chromium-review.googlesource.com/c/1409868Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent f3179a6a
......@@ -535,7 +535,6 @@ egl::Error Context::onDestroy(const egl::Display *display)
{
if (zeroTexture.get() != nullptr)
{
zeroTexture->onDestroy(this);
zeroTexture.set(this, nullptr);
}
}
......
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