Skip to content
Snippets Groups Projects
Commit ab299e01 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix clamping quality in setSnapshotQuality

parent 4040c50a
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@ void LLSnapshotLivePreview::updateSnapshot(BOOL new_snapshot, BOOL new_thumbnail
// Return true if the quality has been changed, false otherwise
bool LLSnapshotLivePreview::setSnapshotQuality(S32 quality, bool set_by_user)
{
llclamp(quality, 0, 100);
quality = llclamp(quality, 0, 100);
if (quality != mSnapshotQuality)
{
mSnapshotQuality = quality;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment