diff options
| author | Dustin Graves <dustin@lunarg.com> | 2016-04-05 13:48:15 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-06 08:29:15 -0600 |
| commit | c8494b5d294cb155c2865dcd508d5f637decffe4 (patch) | |
| tree | 2c52c0a5509f078b308f868717788777fee9e235 /layers/threading.h | |
| parent | 3d61b79e0b5743db672f594956594ab70c95680e (diff) | |
| download | usermoji-c8494b5d294cb155c2865dcd508d5f637decffe4.tar.xz | |
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
Diffstat (limited to 'layers/threading.h')
| -rw-r--r-- | layers/threading.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <typename T> class counter { VkDebugReportObjectTypeEXT objectType; std::unordered_map<T, object_use_data> 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 <typename T> 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()) { |
