diff --git a/dlls/d3d10/d3d10_private.h b/dlls/d3d10/d3d10_private.h index 6f95a96dca2..a170d1d45bc 100644 --- a/dlls/d3d10/d3d10_private.h +++ b/dlls/d3d10/d3d10_private.h @@ -66,6 +66,7 @@ struct d3d10_effect_variable char *name; DWORD buffer_offset; DWORD annotation_count; + DWORD flag; }; struct d3d10_effect_local_buffer diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index d05d6a6ffaa..71ec998443b 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -428,7 +428,10 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char * read_dword(ptr, &v->buffer_offset); TRACE("Variable offset in buffer: %#x.\n", v->buffer_offset); - skip_dword_unknown(ptr, 2); + skip_dword_unknown(ptr, 1); + + read_dword(ptr, &v->flag); + TRACE("Variable flag: %#x.\n", v->flag); read_dword(ptr, &v->annotation_count); for(i = 0; i < v->annotation_count; ++i)