Commit 77e6dcca authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d9: Store the FVF in the d3d9 vertex buffer.

parent ff16f306
......@@ -329,6 +329,8 @@ typedef struct IDirect3DVertexBuffer9Impl
/* Parent reference */
LPDIRECT3DDEVICE9EX parentDevice;
DWORD fvf;
} IDirect3DVertexBuffer9Impl;
/* --------------------- */
......
......@@ -197,8 +197,8 @@ static HRESULT WINAPI IDirect3DVertexBuffer9Impl_GetDesc(LPDIRECT3DVERTEXBUFFER9
pDesc->Usage = desc.Usage;
pDesc->Pool = desc.Pool;
pDesc->Size = desc.Size;
pDesc->FVF = desc.FVF;
pDesc->Type = D3DRTYPE_VERTEXBUFFER;
pDesc->FVF = This->fvf;
}
......@@ -245,6 +245,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9EX iface
object->lpVtbl = &Direct3DVertexBuffer9_Vtbl;
object->ref = 1;
object->fvf = FVF;
EnterCriticalSection(&d3d9_cs);
hrc = IWineD3DDevice_CreateVertexBuffer(This->WineD3DDevice, Size, Usage & WINED3DUSAGE_MASK, FVF, (WINED3DPOOL) Pool, &(object->wineD3DVertexBuffer), pSharedHandle, (IUnknown *)object);
LeaveCriticalSection(&d3d9_cs);
......
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