Index: gpu/command_buffer/service/texture_manager.cc |
=================================================================== |
--- gpu/command_buffer/service/texture_manager.cc (revision 78636) |
+++ gpu/command_buffer/service/texture_manager.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -67,7 +67,7 @@ |
while (!texture_infos_.empty()) { |
if (have_context) { |
TextureInfo* info = texture_infos_.begin()->second; |
- if (!info->IsDeleted()) { |
+ if (!info->IsDeleted() && info->owned_) { |
GLuint service_id = info->service_id(); |
glDeleteTextures(1, &service_id); |
info->MarkAsDeleted(); |