Commit 33e42264 authored by piman@chromium.org's avatar piman@chromium.org

Unbind texture from all texture units when deleting it.

BUG=None
TEST=None


Review URL: http://codereview.chromium.org/10179006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133579 0039d316-1c4b-4281-b951-d872f2087c98
parent 0bdcc45f
......@@ -2334,7 +2334,7 @@ void GLES2Implementation::DeleteTexturesHelper(
}
for (GLsizei ii = 0; ii < n; ++ii) {
for (GLint tt = 0; tt < gl_state_.max_combined_texture_image_units; ++tt) {
TextureUnit& unit = texture_units_[active_texture_unit_];
TextureUnit& unit = texture_units_[tt];
if (textures[ii] == unit.bound_texture_2d) {
unit.bound_texture_2d = 0;
}
......
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