Commit 6972d1da authored by Bill Orr's avatar Bill Orr Committed by Commit Bot

Make GLES2DecoderPassthrough::DoReleaseTexImage2DCHROMIUM release images

BUG=788993

Change-Id: I9fc477c0ba27283c5aa2d00400b510705e1929d9
Reviewed-on: https://chromium-review.googlesource.com/792538Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Reviewed-by: default avatarGeoff Lang <geofflang@chromium.org>
Commit-Queue: Bill Orr <billorr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519757}
parent fb6ac926
......@@ -4071,7 +4071,7 @@ error::Error GLES2DecoderPassthroughImpl::DoReleaseTexImage2DCHROMIUM(
}
// Only release the image if it is currently bound
if (bound_texture.texture->GetLevelImage(target, 0) != image) {
if (bound_texture.texture->GetLevelImage(target, 0) == image) {
image->ReleaseTexImage(target);
bound_texture.texture->SetLevelImage(target, 0, 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