Index: cc/test/ordered_texture_map.cc |
diff --git a/cc/test/ordered_texture_map.cc b/cc/test/ordered_texture_map.cc |
index ee3e2f3be865aebf002fa0921ec905018015d4ba..649700c49795a8eb12ff29626e0c1ea1f1b1d14f 100644 |
--- a/cc/test/ordered_texture_map.cc |
+++ b/cc/test/ordered_texture_map.cc |
@@ -32,7 +32,10 @@ void OrderedTextureMap::Replace(GLuint id, |
void OrderedTextureMap::Remove(GLuint id) { |
TextureMap::iterator map_it = textures_.find(id); |
- DCHECK(map_it != textures_.end()); |
+ // for some test we generate dummy tex id, which are not registered, |
+ // nothing to remove in that case. |
+ if (map_it == textures_.end()) |
+ return; |
textures_.erase(map_it); |
TextureList::iterator list_it = |