Chromium Code Reviews| 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 ba79b2a3890fe5bdce0c3f75fc42ecdc21000f8e..60192add4dbd9e630cdcc737e5577ee6921b65fc 100644 |
| --- a/gpu/command_buffer/service/texture_manager.cc |
| +++ b/gpu/command_buffer/service/texture_manager.cc |
| @@ -1491,6 +1491,9 @@ void Texture::SetLevelImageInternal(GLenum target, |
| info.stream_texture_image = stream_texture_image; |
| info.image_state = state; |
| + // Reset the unowned service id because if the previously bound image owned |
| + // it, it would have become invalid when that image was destructed. |
| + SetUnownedServiceId(0); |
|
piman
2016/05/26 22:09:16
I think I understand the semantics this is trying
|
| UpdateCanRenderCondition(); |
| UpdateHasImages(); |
| UpdateEmulatingRGB(); |