Fixed a snapshot crash
This commit is contained in:
@@ -588,7 +588,6 @@ class LLFileTakeSnapshotToDisk : public view_listener_t
|
|||||||
gViewerWindow->playSnapshotAnimAndSound();
|
gViewerWindow->playSnapshotAnimAndSound();
|
||||||
|
|
||||||
LLPointer<LLImageFormatted> formatted;
|
LLPointer<LLImageFormatted> formatted;
|
||||||
formatted->enableOverSize();
|
|
||||||
switch(LLFloaterSnapshot::ESnapshotFormat(gSavedSettings.getS32("SnapshotFormat")))
|
switch(LLFloaterSnapshot::ESnapshotFormat(gSavedSettings.getS32("SnapshotFormat")))
|
||||||
{
|
{
|
||||||
case LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG:
|
case LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG:
|
||||||
@@ -605,6 +604,7 @@ class LLFileTakeSnapshotToDisk : public view_listener_t
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
formatted->enableOverSize() ;
|
||||||
formatted->encode(raw, 0);
|
formatted->encode(raw, 0);
|
||||||
formatted->disableOverSize();
|
formatted->disableOverSize();
|
||||||
gViewerWindow->saveImageNumbered(formatted);
|
gViewerWindow->saveImageNumbered(formatted);
|
||||||
|
|||||||
Reference in New Issue
Block a user