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:
Matteo Bruni 2017-12-04 18:07:28 +01:00 committed by Alexandre Julliard
parent 72a60e4455
commit 8c3019ca71
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}