[2/10] WineD3D / D3D8: Move todo about sw vp usage to d3d8

Stefan Dösinger stefan at codeweavers.com
Mon Feb 19 08:19:19 CST 2007


-------------- next part --------------
From 0e7b65e4261f20dbee0f7796a28220396a42eb08 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Sun, 18 Feb 2007 17:41:33 +0100
Subject: [PATCH] WineD3D / D3D8: Move todo about sw vp usage to d3d8

This usage flag is not really important because wine does not support
software vertex shaders. However, the TODO about this should be moved to
the place where it belongs
---
 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;
 }
 
-- 
1.4.4.3



More information about the wine-patches mailing list