[PATCH 2/6] d3d11: Validate buffer MiscFlags.
Matteo Bruni
mbruni at codeweavers.com
Mon Dec 4 11:07:28 CST 2017
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/d3d11/buffer.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/d3d11/buffer.c b/dlls/d3d11/buffer.c
index 8233742570..3ccccc8cc8 100644
--- a/dlls/d3d11/buffer.c
+++ b/dlls/d3d11/buffer.c
@@ -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;
}
--
2.13.6
More information about the wine-devel
mailing list