mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Replace assert() with VKD3D_ASSERT() in utils.c.
This commit is contained in:
parent
bd75396b38
commit
529647142c
Notes:
Henri Verbeet
2024-07-29 19:19:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/967
@ -331,7 +331,7 @@ static HRESULT vkd3d_init_format_compatibility_lists(struct d3d12_device *device
|
|||||||
|
|
||||||
if (j >= current_list->format_count)
|
if (j >= current_list->format_count)
|
||||||
{
|
{
|
||||||
assert(current_list->format_count < VKD3D_MAX_COMPATIBLE_FORMAT_COUNT);
|
VKD3D_ASSERT(current_list->format_count < VKD3D_MAX_COMPATIBLE_FORMAT_COUNT);
|
||||||
current_list->vk_formats[current_list->format_count++] = vk_format;
|
current_list->vk_formats[current_list->format_count++] = vk_format;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -427,7 +427,7 @@ static const struct vkd3d_format *vkd3d_get_depth_stencil_format(const struct d3
|
|||||||
const struct vkd3d_format *formats;
|
const struct vkd3d_format *formats;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
assert(device);
|
VKD3D_ASSERT(device);
|
||||||
formats = device->depth_stencil_formats;
|
formats = device->depth_stencil_formats;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(vkd3d_depth_stencil_formats); ++i)
|
for (i = 0; i < ARRAY_SIZE(vkd3d_depth_stencil_formats); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user