mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-utils: Use debugstr_hresult() in D3DStripShader().
This commit is contained in:
parent
1b3aa005db
commit
cd77b2a9be
Notes:
Alexandre Julliard
2024-01-17 22:44:17 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/567
@ -911,7 +911,7 @@ HRESULT WINAPI D3DStripShader(const void *data, SIZE_T data_size, UINT flags, ID
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(hr = D3DCreateBlob(dst_dxbc.size, blob)))
|
if (FAILED(hr = D3DCreateBlob(dst_dxbc.size, blob)))
|
||||||
WARN("Failed to create blob, hr %#x.\n", hr);
|
WARN("Failed to create blob, hr %s.\n", debugstr_hresult(hr));
|
||||||
else
|
else
|
||||||
memcpy(ID3D10Blob_GetBufferPointer(*blob), dst_dxbc.code, dst_dxbc.size);
|
memcpy(ID3D10Blob_GetBufferPointer(*blob), dst_dxbc.code, dst_dxbc.size);
|
||||||
vkd3d_shader_free_shader_code(&dst_dxbc);
|
vkd3d_shader_free_shader_code(&dst_dxbc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user