d3d11: Validate buffer MiscFlags.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
72a60e4455
commit
8c3019ca71
|
@ -422,6 +422,12 @@ static BOOL validate_buffer_desc(D3D11_BUFFER_DESC *desc)
|
|||
desc->StructureByteStride = 0;
|
||||
}
|
||||
|
||||
if (desc->MiscFlags & D3D11_RESOURCE_MISC_GENERATE_MIPS)
|
||||
{
|
||||
WARN("Buffer with the D3D11_RESOURCE_MISC_GENERATE_MIPS flag.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue