diff options
| author | Dustin Graves <dustin@lunarg.com> | 2016-02-04 10:57:00 -0700 |
|---|---|---|
| committer | Dustin Graves <dustin@lunarg.com> | 2016-02-04 11:06:40 -0700 |
| commit | cab375751113b1562ed1fe96b9a59a70bfcd1bb5 (patch) | |
| tree | b1a7efbfdf47c56154d65a3a21c7431c60b684c5 /layers/draw_state.cpp | |
| parent | 32709350dff8eb5f80fa4c1b5d36e0de215f1c15 (diff) | |
| download | usermoji-cab375751113b1562ed1fe96b9a59a70bfcd1bb5.tar.xz | |
layers: Fix 32-bit Windows build
A reinterpret_cast from a non-dispatch handle to uint64_t was failing on
windows 32-bit where non-dispatch handles are defined as 'typdef uint64_t
object'. Changed reinterpret_cast to a C-style cast, as is consistent
with the rest of the non-dispatch handle to uint64_t conversions in
draw_state.
Diffstat (limited to 'layers/draw_state.cpp')
| -rw-r--r-- | layers/draw_state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index c2c480f9..5171109b 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -4371,8 +4371,8 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(VkCommandBuf skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, reinterpret_cast<uint64_t>(commandBuffer), __LINE__, DRAWSTATE_RENDERPASS_INCOMPATIBLE, "DS", "vkBeginCommandBuffer(): Secondary Command Buffer (%p) renderPass (%#" PRIxLEAST64 ") is incompatible w/ framebuffer (%#" PRIxLEAST64 - ") w/ render pass (%#" PRIxLEAST64 ") due to: %s", reinterpret_cast<void*>(commandBuffer), reinterpret_cast<uint64_t>(pInfo->renderPass), - reinterpret_cast<uint64_t>(pInfo->framebuffer), reinterpret_cast<uint64_t>(fbRP), errorString.c_str()); + ") w/ render pass (%#" PRIxLEAST64 ") due to: %s", reinterpret_cast<void*>(commandBuffer), (uint64_t)(pInfo->renderPass), + (uint64_t)(pInfo->framebuffer), (uint64_t)(fbRP), errorString.c_str()); } } } |
