Index: cc/layers/texture_layer.cc |
diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc |
index 316042b861a969dabd71a3bda0bc3b926c3aac3a..be56444ca4a7afb230759b81ce822a9a95391477 100644 |
--- a/cc/layers/texture_layer.cc |
+++ b/cc/layers/texture_layer.cc |
@@ -189,8 +189,8 @@ bool TextureLayer::Update(ResourceUpdateQueue* queue, |
updated = true; |
} |
} else { |
- DCHECK(client_->Context3d()); |
texture_id_ = client_->PrepareTexture(); |
+ DCHECK(!texture_id_ || client_->Context3d()); |
if (client_->Context3d() && |
client_->Context3d()->getGraphicsResetStatusARB() != GL_NO_ERROR) |
texture_id_ = 0; |