summaryrefslogtreecommitdiff
path: root/indra/newview/llsnapshotlivepreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llsnapshotlivepreview.cpp')
-rw-r--r--indra/newview/llsnapshotlivepreview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp
index 21abdd2675..ee74dbdb0f 100644
--- a/indra/newview/llsnapshotlivepreview.cpp
+++ b/indra/newview/llsnapshotlivepreview.cpp
@@ -594,8 +594,7 @@ void LLSnapshotLivePreview::generateThumbnailImage(BOOL force_update)
std::string filter_path = LLImageFiltersManager::getInstance()->getFilterPath(getFilter());
if (filter_path != "")
{
- LLImageFilter filter;
- filter.loadFromFile(filter_path);
+ LLImageFilter filter(filter_path);
filter.executeFilter(raw);
}
else
@@ -713,8 +712,7 @@ BOOL LLSnapshotLivePreview::onIdle( void* snapshot_preview )
std::string filter_path = LLImageFiltersManager::getInstance()->getFilterPath(previewp->getFilter());
if (filter_path != "")
{
- LLImageFilter filter;
- filter.loadFromFile(filter_path);
+ LLImageFilter filter(filter_path);
filter.executeFilter(previewp->mPreviewImage);
}
else