wined3d: Store the private data in IWineD3DResource::SetPrivateData.
This commit is contained in:
parent
4e796854af
commit
edfe5d68ee
|
@ -126,6 +126,8 @@ HRESULT WINAPI IWineD3DResourceImpl_SetPrivateData(IWineD3DResource *iface, REFG
|
||||||
HeapFree(GetProcessHeap(), 0, *data);
|
HeapFree(GetProcessHeap(), 0, *data);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
|
(*data)->size = SizeOfData;
|
||||||
|
memcpy((*data)->ptr.data, pData, SizeOfData);
|
||||||
}
|
}
|
||||||
/* link it in */
|
/* link it in */
|
||||||
(*data)->next = This->resource.privateData;
|
(*data)->next = This->resource.privateData;
|
||||||
|
|
Loading…
Reference in New Issue