diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-05-02 16:42:55 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-05-03 11:38:06 -0700 |
| commit | e6f7cbaff088597431cf149af29dc2bbf0de6ef4 (patch) | |
| tree | 97c484162957facf3f8e4bb1a94d04669b52fd2c /layers/unique_objects.h | |
| parent | 04c739104d66020cebaf981a9bfa5d8ce622df45 (diff) | |
| download | usermoji-e6f7cbaff088597431cf149af29dc2bbf0de6ef4.tar.xz | |
layers: hold UO dispatch tables by value in layer_data
Trims out some allocations; fixes leak of dispatch tables
Diffstat (limited to 'layers/unique_objects.h')
| -rw-r--r-- | layers/unique_objects.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/unique_objects.h b/layers/unique_objects.h index 76420a6c..f90c5bfb 100644 --- a/layers/unique_objects.h +++ b/layers/unique_objects.h @@ -46,7 +46,7 @@ struct instance_layer_data { debug_report_data *report_data; std::vector<VkDebugReportCallbackEXT> logging_callback; - VkLayerInstanceDispatchTable *dispatch_table; + VkLayerInstanceDispatchTable dispatch_table = {}; // The following are for keeping track of the temporary callbacks that can // be used in vkCreateInstance and vkDestroyInstance: @@ -65,7 +65,7 @@ struct layer_data { VkInstance instance; debug_report_data *report_data; - VkLayerDispatchTable *dispatch_table; + VkLayerDispatchTable dispatch_table = {}; std::unordered_map<uint64_t, std::unique_ptr<TEMPLATE_STATE>> desc_template_map; |
