From cab375751113b1562ed1fe96b9a59a70bfcd1bb5 Mon Sep 17 00:00:00 2001 From: Dustin Graves Date: Thu, 4 Feb 2016 10:57:00 -0700 Subject: 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. --- layers/draw_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') 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(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(commandBuffer), reinterpret_cast(pInfo->renderPass), - reinterpret_cast(pInfo->framebuffer), reinterpret_cast(fbRP), errorString.c_str()); + ") w/ render pass (%#" PRIxLEAST64 ") due to: %s", reinterpret_cast(commandBuffer), (uint64_t)(pInfo->renderPass), + (uint64_t)(pInfo->framebuffer), (uint64_t)(fbRP), errorString.c_str()); } } } -- cgit v1.2.3