mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 20:04:59 +00:00
d3dx9: Fix RegisterCount calculation.
This commit is contained in:
parent
4d59b503de
commit
053e5b59ec
@ -1616,8 +1616,6 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
|
||||
|
||||
if (count)
|
||||
{
|
||||
WORD size_element = 0;
|
||||
|
||||
constant->constants = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*constant->constants) * count);
|
||||
if (!constant->constants)
|
||||
{
|
||||
@ -1634,8 +1632,7 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
|
||||
if (hr != D3D_OK)
|
||||
goto error;
|
||||
|
||||
if (i == 0) size_element = constant->constants[i].desc.RegisterCount;
|
||||
size += size_element;
|
||||
size += constant->constants[i].desc.RegisterCount;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user