Index: cc/CCPrioritizedTextureManager.cpp |
diff --git a/cc/CCPrioritizedTextureManager.cpp b/cc/CCPrioritizedTextureManager.cpp |
index 584d6caa5663ac5db846252479b8f34b779e249e..54f8ac2e6a8ce3c6ae95c23891b796bb09f12577 100644 |
--- a/cc/CCPrioritizedTextureManager.cpp |
+++ b/cc/CCPrioritizedTextureManager.cpp |
@@ -183,7 +183,7 @@ void CCPrioritizedTextureManager::acquireBackingTextureIfNeeded(CCPrioritizedTex |
for (BackingSet::iterator it = m_backings.begin(); it != m_backings.end(); ++it) { |
if ((*it)->hadOwnerAtLastPriorityUpdate() && (*it)->wasAbovePriorityCutoffAtLastPriorityUpdate()) |
break; |
- if ((*it)->size() == texture->size() && (*it)->format() == texture->format()) { |
+ if ((*it)->size() == texture->size() && (*it)->format() == texture->format() && !resourceProvider->inUseByConsumer((*it)->id())) { |
backing = (*it); |
break; |
} |