From 6d8218edfec9050ee89523cb56bca28112614b7a Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Sat, 13 Jun 2015 21:39:35 -0600 Subject: [PATCH] mem_tracker: Use dispatch access functions Hopefully makes code easier to read when using the dispatch table access functions. --- layers/mem_tracker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 4c6d700c..1b22df7a 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -76,13 +76,15 @@ template layer_data *get_my_data_ptr( debug_report_data *mdd(VkObject object) { - layer_data *my_data = get_my_data_ptr(get_dispatch_key(object), layer_data_map); + dispatch_key key = get_dispatch_key(object); + layer_data *my_data = get_my_data_ptr(key, layer_data_map); assert(my_data->report_data != NULL); return my_data->report_data; } debug_report_data *mid(VkInstance object) { + dispatch_key key = get_dispatch_key(object); layer_data *my_data = get_my_data_ptr(get_dispatch_key(object), layer_data_map); assert(my_data->report_data != NULL); return my_data->report_data; -- 2.34.1