Commit d95920e8 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

d3dcompiler: Fail parsing reflection data for sm51 in versions below 47.

parent 85e0a09c
......@@ -1441,6 +1441,14 @@ static HRESULT d3dcompiler_parse_rdef(struct d3dcompiler_shader_reflection *r, c
target_version = r->target & D3DCOMPILER_SHADER_TARGET_VERSION_MASK;
#if D3D_COMPILER_VERSION < 47
if (target_version >= 0x501)
{
WARN("Target version %#x is not supported in d3dcompiler %u.\n", target_version, D3D_COMPILER_VERSION);
return E_INVALIDARG;
}
#endif
read_dword(&ptr, &r->flags);
TRACE("Flags: %u\n", r->flags);
......
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