summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp b/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
index 66c4bf3..03ef714 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
@@ -292,7 +292,11 @@ TileTexture* TilesManager::getAvailableTexture(Tile* owner)
// Sanity check that the tile does not already own a texture
if (owner->backTexture() && owner->backTexture()->owner() == owner) {
- availableTexturePool->remove(availableTexturePool->find(owner->backTexture()));
+ int removeIndex = availableTexturePool->find(owner->backTexture());
+
+ // TODO: investigate why texture isn't found
+ if (removeIndex >= 0)
+ availableTexturePool->remove(removeIndex);
return owner->backTexture();
}