Fix the DCHECK problem for TextureManager::TextureInfo::SetTarget

It's because GLES2DecoderImpl::HandleDestroyStreamTextureCHROMIUM can
clear the target of a streamtexture which is not zero.
It occurs when destorying a html5 video on Android platform because it will
create/destroy streamtextures.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/11421148

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170915 0039d316-1c4b-4281-b951-d872f2087c98
parent b1e270b5
...@@ -8742,7 +8742,6 @@ error::Error GLES2DecoderImpl::HandleDestroyStreamTextureCHROMIUM( ...@@ -8742,7 +8742,6 @@ error::Error GLES2DecoderImpl::HandleDestroyStreamTextureCHROMIUM(
stream_texture_manager_->DestroyStreamTexture(info->service_id()); stream_texture_manager_->DestroyStreamTexture(info->service_id());
info->SetStreamTexture(false); info->SetStreamTexture(false);
texture_manager()->SetInfoTarget(info, 0);
} else { } else {
SetGLError(GL_INVALID_VALUE, SetGLError(GL_INVALID_VALUE,
"glDestroyStreamTextureCHROMIUM", "bad texture id."); "glDestroyStreamTextureCHROMIUM", "bad texture id.");
......
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