summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp
index 780baf00..50fe8bd9 100644
--- a/src/resources/ambientlayer.cpp
+++ b/src/resources/ambientlayer.cpp
@@ -51,6 +51,7 @@ AmbientLayer::AmbientLayer(Image *img, float parallax,
std::string idPath = mImage->getIdPath() + "_rescaled";
ResourceManager::getInstance()->addResource(idPath, rescaledOverlay);
mImage = rescaledOverlay;
+ rescaledOverlay->incRef();
}
else
mImage->incRef();