summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-08-12 11:09:05 -0700
committerdolphin <dolphin@lindenlab.com>2013-08-12 11:09:05 -0700
commit91c9cc4c33f68f4f39e23763317a76ccb573c38b (patch)
tree3b2c4d3612ddf1697727cf80fb08a207a7180b96 /indra
parent91a91d1b23394bb0e3b0fb4af21703e3d6e9437a (diff)
Save SL NVAPI profile only when changes have been made.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llappviewerwin32.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp
index 3cf3c739d9..80a80f4298 100755
--- a/indra/newview/llappviewerwin32.cpp
+++ b/indra/newview/llappviewerwin32.cpp
@@ -172,21 +172,20 @@ void ll_nvapi_init(NvDRSSessionHandle hSession)
nvapi_error(status);
return;
}
+
+ // (5) Now we apply (or save) our changes to the system
+ status = NvAPI_DRS_SaveSettings(hSession);
+ if (status != NVAPI_OK)
+ {
+ nvapi_error(status);
+ return;
+ }
}
else if (status != NVAPI_OK)
{
nvapi_error(status);
return;
}
-
-
-
- // (5) Now we apply (or save) our changes to the system
- status = NvAPI_DRS_SaveSettings(hSession);
- if (status != NVAPI_OK)
- {
- nvapi_error(status);
- }
}
//#define DEBUGGING_SEH_FILTER 1