wined3d: Initialise WINED3DVERTEXELEMENT's Reg field in
IWineD3DVertexDeclarationImpl_ParseDeclaration9.
This commit is contained in:
parent
46b13aaa58
commit
f716eea3df
|
@ -383,6 +383,7 @@ static HRESULT IWineD3DVertexDeclarationImpl_ParseDeclaration9(IWineD3DVertexDec
|
|||
This->pDeclarationWine = HeapAlloc(GetProcessHeap(), 0, This->declaration9NumElements * sizeof(WINED3DVERTEXELEMENT));
|
||||
for(i = 0; i < This->declaration9NumElements; ++i) {
|
||||
memcpy(This->pDeclarationWine + i, This->pDeclaration9 + i, sizeof(D3DVERTEXELEMENT9));
|
||||
This->pDeclarationWine[i].Reg = -1;
|
||||
}
|
||||
|
||||
This->declarationWNumElements = This->declaration9NumElements;
|
||||
|
|
|
@ -507,7 +507,7 @@ typedef struct _WINED3DVERTEXELEMENT {
|
|||
BYTE Method;
|
||||
BYTE Usage;
|
||||
BYTE UsageIndex;
|
||||
BYTE Reg; /* DirectX 8 */
|
||||
int Reg; /* DirectX 8 */
|
||||
} WINED3DVERTEXELEMENT, *LPWINED3DVERTEXELEMENT;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue