Stefan Dösinger : wined3d/d3d8: Move todo about sw vp usage to d3d8.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 20 05:25:04 CST 2007
Module: wine
Branch: master
Commit: ef68e32b0362f8526492c10b2f5e2e73c104acb4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef68e32b0362f8526492c10b2f5e2e73c104acb4
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Feb 19 15:19:19 2007 +0100
wined3d/d3d8: Move todo about sw vp usage to d3d8.
---
dlls/d3d8/device.c | 2 +-
dlls/wined3d/device.c | 9 ---------
2 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index ee8d162..95a1331 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1257,7 +1257,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexShader(LPDIRECT3DDEVICE8
}
wined3d_vertex_declaration = ((IDirect3DVertexDeclaration8Impl *)object->vertex_declaration)->wined3d_vertex_declaration;
- /* Usage is missing ..*/
+ /* Usage is missing ... Use SetRenderState to set the sw vp render state in SetVertexShader */
hrc = IWineD3DDevice_CreateVertexShader(This->WineD3DDevice, wined3d_vertex_declaration, pFunction, &object->wineD3DVertexShader, (IUnknown *)object);
if (FAILED(hrc)) {
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 510a32c..92f7176 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1586,15 +1586,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *ifac
return WINED3DERR_INVALIDCALL;
}
-#if 0 /* TODO: In D3D* SVP is atatched to the shader, in D3D9 it's attached to the device and isn't stored in the stateblock. */
- if(Usage == WINED3DUSAGE_SOFTWAREVERTEXPROCESSING) {
- /* Foo */
- } else {
- /* Bar */
- }
-
-#endif
-
return WINED3D_OK;
}
More information about the wine-cvs
mailing list