mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Use debugstr_hresult() in vkd3d_create_vk_device().
This commit is contained in:
parent
af160ef0c4
commit
8dc1239e14
Notes:
Alexandre Julliard
2024-01-23 23:05:25 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/593
@ -2071,7 +2071,7 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device,
|
||||
|
||||
if (FAILED(hr = vkd3d_load_vk_device_procs(&device->vk_procs, vk_procs, vk_device)))
|
||||
{
|
||||
ERR("Failed to load device procs, hr %#x.\n", hr);
|
||||
ERR("Failed to load device procs, hr %s.\n", debugstr_hresult(hr));
|
||||
if (device->vk_procs.vkDestroyDevice)
|
||||
device->vk_procs.vkDestroyDevice(vk_device, NULL);
|
||||
return hr;
|
||||
@ -2081,7 +2081,7 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device,
|
||||
|
||||
if (FAILED(hr = d3d12_device_create_vkd3d_queues(device, &device_queue_info)))
|
||||
{
|
||||
ERR("Failed to create queues, hr %#x.\n", hr);
|
||||
ERR("Failed to create queues, hr %s.\n", debugstr_hresult(hr));
|
||||
device->vk_procs.vkDestroyDevice(vk_device, NULL);
|
||||
return hr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user