Commit f702471e authored by twiz@chromium.org's avatar twiz@chromium.org

Correct the clear semantics for textures used by the GL_CHROMIUM_clopy_texture extension.

BUG=128207
TEST=GLCopyTextureCHROMIUMTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137250 0039d316-1c4b-4281-b951-d872f2087c98
parent 20b433a9
...@@ -8537,6 +8537,8 @@ void GLES2DecoderImpl::DoCopyTextureCHROMIUM( ...@@ -8537,6 +8537,8 @@ void GLES2DecoderImpl::DoCopyTextureCHROMIUM(
texture_manager()->SetLevelInfo( texture_manager()->SetLevelInfo(
dest_info, GL_TEXTURE_2D, level, internal_format, source_width, dest_info, GL_TEXTURE_2D, level, internal_format, source_width,
source_height, 1, 0, internal_format, dest_type, true); source_height, 1, 0, internal_format, dest_type, true);
} else {
texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level);
} }
state_dirty_ = true; state_dirty_ = true;
......
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