summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer
diff options
context:
space:
mode:
authortwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 21:30:25 +0000
committertwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 21:30:25 +0000
commitf702471eda4238af4e59a7a4f16f898ec9cf728f (patch)
tree04ddf4981322ef67f982df221613d7947b73c9c9 /gpu/command_buffer
parent20b433a9b358fba27d139bdf7e8e946d73ca3c6b (diff)
downloadchromium_src-f702471eda4238af4e59a7a4f16f898ec9cf728f.zip
chromium_src-f702471eda4238af4e59a7a4f16f898ec9cf728f.tar.gz
chromium_src-f702471eda4238af4e59a7a4f16f898ec9cf728f.tar.bz2
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
Diffstat (limited to 'gpu/command_buffer')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 8a52486..6214b9c 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -8537,6 +8537,8 @@ void GLES2DecoderImpl::DoCopyTextureCHROMIUM(
texture_manager()->SetLevelInfo(
dest_info, GL_TEXTURE_2D, level, internal_format, source_width,
source_height, 1, 0, internal_format, dest_type, true);
+ } else {
+ texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level);
}
state_dirty_ = true;