From 1f732cb40d1a752aa1ebf3c3eb4c1ae7a9c2a04a Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 25 Oct 2016 20:56:47 -0600 Subject: layers:CreateDescriptorSetLayout cleanup Streamline duplicate binding check, use [] operator instead of emplace, remove dead comment and add new comment. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c2b78c08..4e3c5f31 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6723,7 +6723,7 @@ static bool PreCallValidateCreateDescriptorSetLayout(layer_data *dev_data, const static void PostCallRecordCreateDescriptorSetLayout(layer_data *dev_data, const VkDescriptorSetLayoutCreateInfo *create_info, VkDescriptorSetLayout set_layout) { - // TODOSC : Capture layout bindings set + // TODO: Convert this to unique_ptr to avoid leaks dev_data->descriptorSetLayoutMap[set_layout] = new cvdescriptorset::DescriptorSetLayout(create_info, set_layout); } -- cgit v1.2.3