| Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| index 36f2b42bd6c2d038cba5ba192d7f7f966f789465..5ce4a223fb3d185563e6d8e1948f5b7b4916713b 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| @@ -395,6 +395,7 @@ void CopyTextureCHROMIUMResourceManager::DoCopyTextureWithTransform(
|
| } else
|
| #endif
|
| {
|
| + decoder->ClearAllAttributes();
|
| glEnableVertexAttribArray(kVertexPositionAttrib);
|
|
|
| glBindBuffer(GL_ARRAY_BUFFER, buffer_id_);
|
| @@ -421,7 +422,7 @@ void CopyTextureCHROMIUMResourceManager::DoCopyTextureWithTransform(
|
| glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
|
| }
|
|
|
| - decoder->RestoreAttribute(kVertexPositionAttrib);
|
| + decoder->RestoreAllAttributes();
|
| decoder->RestoreTextureState(source_id);
|
| decoder->RestoreTextureState(dest_id);
|
| decoder->RestoreTextureUnitBindings(0);
|
|
|