Commit be3c8db2 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d10: Parse semantic in parse_fx10_local_variable().

parent 35c6beeb
...@@ -1284,11 +1284,22 @@ static HRESULT parse_fx10_local_variable(struct d3d10_effect_variable *v, const ...@@ -1284,11 +1284,22 @@ static HRESULT parse_fx10_local_variable(struct d3d10_effect_variable *v, const
{ {
unsigned int i; unsigned int i;
HRESULT hr; HRESULT hr;
DWORD offset;
hr = parse_fx10_variable_head(v, ptr, data); hr = parse_fx10_variable_head(v, ptr, data);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
skip_dword_unknown(ptr, 2); read_dword(ptr, &offset);
TRACE("Variable semantic at offset %#x.\n", offset);
if (!copy_name(data + offset, &v->semantic))
{
ERR("Failed to copy semantic.\n");
return E_OUTOFMEMORY;
}
TRACE("Variable semantic: %s.\n", debugstr_a(v->semantic));
skip_dword_unknown(ptr, 1);
switch (v->type->basetype) switch (v->type->basetype)
{ {
......
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