aboutsummaryrefslogtreecommitdiff
path: root/layers/swapchain.cpp
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-05-24 15:44:50 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-05-24 16:40:59 -0600
commit21c87f829d66ddd0b0cb5033510718fa78ca4b6a (patch)
tree8a751dd9cc4e8e86e6a03483a2650894c4ea2114 /layers/swapchain.cpp
parent45b973ef19d6fac273da7a17586441baae1f7ff7 (diff)
downloadusermoji-21c87f829d66ddd0b0cb5033510718fa78ca4b6a.tar.xz
layers: Use correct log_msg calls in swapchain
Swapchain layer was making a couple of calls directly to debug_report_log_msg instead of going through log_msg. Change-Id: I206210bb0d109778c90283144075a77fc459210b
Diffstat (limited to 'layers/swapchain.cpp')
-rw-r--r--layers/swapchain.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp
index f49c8bca..b603ec77 100644
--- a/layers/swapchain.cpp
+++ b/layers/swapchain.cpp
@@ -1486,9 +1486,9 @@ static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateI
}
}
// Log the message that we've built up:
- skipCall |= debug_report_log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
- VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, (uint64_t)device, __LINE__,
- SWAPCHAIN_CREATE_SWAP_BAD_PRE_TRANSFORM, LAYER_NAME, errorString.c_str());
+ skipCall |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
+ reinterpret_cast<uint64_t &>(device), __LINE__, SWAPCHAIN_CREATE_SWAP_BAD_PRE_TRANSFORM, LAYER_NAME,
+ "%s", errorString.c_str());
}
// Validate pCreateInfo->compositeAlpha has one bit set (1st two
// lines of if-statement), which bit is also set in
@@ -1515,9 +1515,9 @@ static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateI
}
}
// Log the message that we've built up:
- skipCall |= debug_report_log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
- VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, (uint64_t)device, 0,
- SWAPCHAIN_CREATE_SWAP_BAD_COMPOSITE_ALPHA, LAYER_NAME, errorString.c_str());
+ skipCall |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
+ reinterpret_cast<uint64_t &>(device), __LINE__, SWAPCHAIN_CREATE_SWAP_BAD_COMPOSITE_ALPHA,
+ LAYER_NAME, "%s", errorString.c_str());
}
// Validate pCreateInfo->imageArraySize against
// VkSurfaceCapabilitiesKHR::maxImageArraySize: