From c8494b5d294cb155c2865dcd508d5f637decffe4 Mon Sep 17 00:00:00 2001 From: Dustin Graves Date: Tue, 5 Apr 2016 13:48:15 -0600 Subject: layers: Fix unsafe bool mix warnings (part 2) Fixes the MSVS warnings regarding unsafe mix of VkBool32 and bool for the device_limits, image, parameter_validation, and threading layers. Converts all Boolean usage internal to the layers to bool/true/false. The VK_TRUE and VK_FALSE values continue to be used with the Vulkan API components. Change-Id: I612d3f26050fadcd77ffca4d8723a7c734613816 --- layers/threading.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/threading.h') diff --git a/layers/threading.h b/layers/threading.h index 0e233639..21168751 100644 --- a/layers/threading.h +++ b/layers/threading.h @@ -63,7 +63,7 @@ template class counter { VkDebugReportObjectTypeEXT objectType; std::unordered_map uses; void startWrite(debug_report_data *report_data, T object) { - VkBool32 skipCall = VK_FALSE; + bool skipCall = false; loader_platform_thread_id tid = loader_platform_get_thread_id(); loader_platform_thread_lock_mutex(&threadingLock); if (uses.find(object) == uses.end()) { @@ -146,7 +146,7 @@ template class counter { } void startRead(debug_report_data *report_data, T object) { - VkBool32 skipCall = VK_FALSE; + bool skipCall = false; loader_platform_thread_id tid = loader_platform_get_thread_id(); loader_platform_thread_lock_mutex(&threadingLock); if (uses.find(object) == uses.end()) { -- cgit v1.2.3