diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-03-25 13:21:10 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-03-25 13:21:10 -0500 |
| commit | 180989f28e69600a3bc198b8b62101ec25374bee (patch) | |
| tree | a6e0496f1eba79e5edc4912b2959a1ef86a3aec9 /indra/newview/llfeaturemanager.cpp | |
| parent | 34e79c8f4e251200496651f9ae2b5126a6f7faa3 (diff) | |
| parent | ed98d77fe81a04a03c76e159f8fa963adf6b1109 (diff) | |
Merge remote-tracking branch 'remotes/origin/DRTVWR-546' into SL-17005
Diffstat (limited to 'indra/newview/llfeaturemanager.cpp')
| -rw-r--r-- | indra/newview/llfeaturemanager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp index 3240f169b3..e934041e2e 100644 --- a/indra/newview/llfeaturemanager.cpp +++ b/indra/newview/llfeaturemanager.cpp @@ -381,7 +381,10 @@ F32 gpu_benchmark(); F32 logExceptionBenchmark() { - // Todo: make a wrapper/class for SEH exceptions + // FIXME: gpu_benchmark uses many C++ classes on the stack to control state. + // SEH exceptions with our current exception handling options do not call + // destructors for these classes, resulting in an undefined state should + // this handler be invoked. F32 gbps = -1; __try { @@ -389,6 +392,9 @@ F32 logExceptionBenchmark() } __except (msc_exception_filter(GetExceptionCode(), GetExceptionInformation())) { + // HACK - ensure that profiling is disabled + LLGLSLShader::finishProfile(false); + // convert to C++ styled exception char integer_string[32]; sprintf(integer_string, "SEH, code: %lu\n", GetExceptionCode()); |
