Commit b1f9cd57 authored by Philip Rebohle's avatar Philip Rebohle Committed by Alexandre Julliard

d3dcompiler: Accept a stat chunk size of 28 for reflection.

Fixes "unhandled size" error for Crysis shaders. Signed-off-by: 's avatarPhilip Rebohle <philip.rebohle@tu-dortmund.de> Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a23c20ee
......@@ -1127,7 +1127,12 @@ static HRESULT d3dcompiler_parse_stat(struct d3dcompiler_shader_reflection *r, c
read_dword(&ptr, &r->gs_max_output_vertex_count);
TRACE("GSMaxOutputVertexCount: %u\n", r->gs_max_output_vertex_count);
skip_dword_unknown(&ptr, 3);
skip_dword_unknown(&ptr, 2);
/* old dx10 stat size */
if (size == 28) return S_OK;
skip_dword_unknown(&ptr, 1);
/* dx10 stat size */
if (size == 29) return S_OK;
......
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