vk: Fix 2 incorrect typecasts

The compiler didn't find the cast errors because all Vulkan types are
just integers.
This commit is contained in:
Chad Versace 2015-06-04 14:31:53 -07:00
parent b981379bcf
commit 87d98e1935

View file

@ -1331,7 +1331,7 @@ VkResult anv_CreateFence(
fence->execbuf.rsvd1 = device->context_id;
fence->execbuf.rsvd2 = 0;
*pFence = (VkQueryPool) fence;
*pFence = (VkFence) fence;
return VK_SUCCESS;
@ -1561,7 +1561,7 @@ VkResult anv_CreateBufferView(
fill_buffer_surface_state(view->surface_state.map,
pCreateInfo->format, view->offset, pCreateInfo->range);
*pView = (VkImageView) view;
*pView = (VkBufferView) view;
return VK_SUCCESS;
}