Commit 8c3019ca authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d11: Validate buffer MiscFlags.

parent 72a60e44
...@@ -422,6 +422,12 @@ static BOOL validate_buffer_desc(D3D11_BUFFER_DESC *desc) ...@@ -422,6 +422,12 @@ static BOOL validate_buffer_desc(D3D11_BUFFER_DESC *desc)
desc->StructureByteStride = 0; 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; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment