Skip to content
0.2.0-dev Download ZIP
48 lines ·2.2 KB Raw
1diff --git a/thirdparty/openxr/src/loader/api_layer_interface.cpp b/thirdparty/openxr/src/loader/api_layer_interface.cpp
2index b8f0881d15..f9f5c6d1ba 100644
3--- a/thirdparty/openxr/src/loader/api_layer_interface.cpp
4+++ b/thirdparty/openxr/src/loader/api_layer_interface.cpp
5@@ -453,17 +453,9 @@ ApiLayerInterface::ApiLayerInterface(const std::string& layer_name, LoaderPlatfo
6 _supported_extensions(supported_extensions) {}
7
8 ApiLayerInterface::~ApiLayerInterface() {
9- try {
10- std::string info_message = "ApiLayerInterface being destroyed for layer ";
11- info_message += _layer_name;
12- LoaderLogger::LogInfoMessage("", info_message);
13- }
14- // NOLINTNEXTLINE(bugprone-empty-catch)
15- catch (...) {
16- // Need a try catch here to avoid concerns about exceptions in a destructor
17- // If logging fails here there isn't much we can do so left intentionally empty
18- }
19-
20+ std::string info_message = "ApiLayerInterface being destroyed for layer ";
21+ info_message += _layer_name;
22+ LoaderLogger::LogInfoMessage("", info_message);
23 LoaderPlatformLibraryClose(_layer_library);
24 }
25
26diff --git a/thirdparty/openxr/src/loader/runtime_interface.cpp b/thirdparty/openxr/src/loader/runtime_interface.cpp
27index 820a0d91c2..18b5660696 100644
28--- a/thirdparty/openxr/src/loader/runtime_interface.cpp
29+++ b/thirdparty/openxr/src/loader/runtime_interface.cpp
30@@ -299,16 +299,8 @@ RuntimeInterface::RuntimeInterface(LoaderPlatformLibraryHandle runtime_library,
31 : _runtime_library(runtime_library), _get_instance_proc_addr(get_instance_proc_addr) {}
32
33 RuntimeInterface::~RuntimeInterface() {
34- try {
35- std::string info_message = "RuntimeInterface being destroyed.";
36- LoaderLogger::LogInfoMessage("", info_message);
37- }
38- // NOLINTNEXTLINE(bugprone-empty-catch)
39- catch (...) {
40- // Need a try catch here to avoid concerns about exceptions in a destructor
41- // If logging fails here there isn't much we can do so left intentionally empty
42- }
43-
44+ std::string info_message = "RuntimeInterface being destroyed.";
45+ LoaderLogger::LogInfoMessage("", info_message);
46 {
47 std::scoped_lock<std::mutex> mlock(_dispatch_table_mutex);
48 _dispatch_table_map.clear();