WINED3D: Return the correct vertex declaration in
IWineD3DDeviceImpl_GetVertexDeclaration
H. Verbeet
hverbeet at gmail.com
Tue Dec 13 14:43:56 CST 2005
IWineD3DDeviceImpl_GetVertexDeclaration should return the declaration
in This->stateblock instead of the one in This->updateStateBlock.
Changelog:
- In IWineD3DDeviceImpl_GetVertexDeclaration, return the vertex
declaration in This->stateblock instead of the one in
This->updateStateBlock.
-------------- next part --------------
adc5d6697f4f0039036254a5a7b22365137cc733
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;
}
More information about the wine-patches
mailing list