| Index: gpu/command_buffer/service/texture_manager.cc
|
| diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
|
| index 3a433d3105937f88716c6ad384aee09e2ad6d91a..349514320a5ac2b8f733c80fc472375e6c514f38 100644
|
| --- a/gpu/command_buffer/service/texture_manager.cc
|
| +++ b/gpu/command_buffer/service/texture_manager.cc
|
| @@ -143,7 +143,9 @@ bool TextureManager::TextureInfo::MarkMipmapsGenerated(
|
| }
|
|
|
| void TextureManager::TextureInfo::SetTarget(GLenum target, GLint max_levels) {
|
| - DCHECK_EQ(0u, target_); // you can only set this once.
|
| + // You can only set target_ once for textures that are not
|
| + // GL_TEXTURE_EXTERNAL_OES .
|
| + DCHECK(0u == target_ || GL_TEXTURE_EXTERNAL_OES == target_);
|
| target_ = target;
|
| size_t num_faces = (target == GL_TEXTURE_CUBE_MAP) ? 6 : 1;
|
| level_infos_.resize(num_faces);
|
|
|