summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-08-08 20:44:29 -0700
committerdolphin <dolphin@lindenlab.com>2013-08-08 20:44:29 -0700
commit4038b972cc75da963d44db44da1f3f57736615f9 (patch)
tree902c17ed7ebc7f2f32a0ad00e8861727fcda6e1e
parente0cc3cbd977dcfbe4ef8409b8484a30b2c63dcc1 (diff)
Only save nvapi DRS settings if the settings change
-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