Module: wine
Branch: refs/heads/master
Commit: 0811851b942fcfd929c9bb54126c2a43f3057d9e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0811851b942fcfd929c9bb5…
Author: Juan Lang <juan_lang(a)yahoo.com>
Date: Fri Mar 10 15:22:41 2006 -0800
crypt32: Abstract contexts.
- create a base cert context, and make functions unaware whether
they're dealing with the base or derived type
- simplify stores as a result
---
dlls/crypt32/store.c | 453 ++++++++++++++++++++++----------------------------
1 files changed, 198 insertions(+), 255 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=0811851b942fcfd929c…
Module: wine
Branch: refs/heads/master
Commit: d4836e1ce1a8c831d76eef2ee8c712539983c763
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d4836e1ce1a8c831d76eef2…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net>
Date: Sun Mar 12 16:27:31 2006 +0100
wined3d: Vertexdeclaration fix.
In the old d3d8 code SetVertexShader stored the so called vertex
declaration in the stateblock. In case of WineD3D this isn't done
which breaks the drawPrimitive code. This patch stores the vertex
declaration again in the stateblock which fixes Age Of Mythology.
---
dlls/wined3d/device.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7ce1d59..eab7fbf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4046,6 +4046,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVer
IWineD3DVertexShader_Release(oldShader);
}
+ if (pShader != NULL && ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration != NULL) {
+ TRACE("(%p) : setting vertexDeclaration(%p)\n", This, ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration);
+ IWineD3DDevice_SetVertexDeclaration(iface, ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration);
+ }
+
TRACE("(%p) : setting pShader(%p)\n", This, pShader);
/**
* TODO: merge HAL shaders context switching from prototype