Skip to content
Snippets Groups Projects
Commit a08dadde authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

vkd3d: Avoid division by zero in GetResourceAllocationInfo() (Coverity).

parent 090177b9
No related branches found
No related tags found
No related merge requests found
......@@ -2072,7 +2072,7 @@ static D3D12_RESOURCE_ALLOCATION_INFO * STDMETHODCALLTYPE d3d12_device_GetResour
}
}
if (desc->Alignment % info->Alignment)
if (valid && desc->Alignment % info->Alignment)
{
WARN("Invalid resource alignment %#"PRIx64" (required %#"PRIx64").\n",
desc->Alignment, info->Alignment);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment