Module: wine Branch: refs/heads/master Commit: dabcbe83e79eae3950385adffbc1108b1d19b57d URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=dabcbe83e79eae3950385adf...
Author: H. Verbeet hverbeet@gmail.com Date: Wed Dec 14 10:50:27 2005 +0100
wined3d: Return the correct vertex declaration. In IWineD3DDeviceImpl_GetVertexDeclaration, return the vertex declaration in This->stateblock instead of the one in This->updateStateBlock.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index a9c253f..bb9247b 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3754,7 +3754,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVer
TRACE("(%p) : ppDecl=%p\n", This, ppDecl);
- *ppDecl = This->updateStateBlock->vertexDecl; + *ppDecl = This->stateBlock->vertexDecl; if (NULL != *ppDecl) IWineD3DVertexDeclaration_AddRef(*ppDecl); return D3D_OK; }