H. Verbeet : wined3d: Remove a redundant check in handleStreams().

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 13 07:56:03 CDT 2007


Module: wine
Branch: master
Commit: 6998d0d472b5392ed06c16a7c97ebb2b07d68177
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6998d0d472b5392ed06c16a7c97ebb2b07d68177

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Mon Mar 12 23:22:16 2007 +0100

wined3d: Remove a redundant check in handleStreams().

---

 dlls/wined3d/state.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index f3acb3b..4349206 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2800,7 +2800,7 @@ static inline void handleStreams(IWineD3DStateBlockImpl *stateblock, BOOL useVer
         if(TRACE_ON(d3d)) {
             drawPrimitiveTraceDataLocations(dataLocations);
         }
-    } else if (stateblock->vertexDecl || stateblock->vertexShader) {
+    } else if (stateblock->vertexDecl) {
         /* Note: This is a fixed function or shader codepath.
          * This means it must handle both types of strided data.
          * Shaders must go through here to zero the strided data, even if they
@@ -2808,11 +2808,8 @@ static inline void handleStreams(IWineD3DStateBlockImpl *stateblock, BOOL useVer
          */
         TRACE("================ Vertex Declaration  ===================\n");
         memset(dataLocations, 0, sizeof(*dataLocations));
-
-        if (stateblock->vertexDecl) {
-            primitiveDeclarationConvertToStridedData((IWineD3DDevice *) device, useVertexShaderFunction,
-                dataLocations, &fixup);
-        }
+        primitiveDeclarationConvertToStridedData((IWineD3DDevice *) device,
+                useVertexShaderFunction, dataLocations, &fixup);
     } else {
         /* Note: This codepath is not reachable from d3d9 (see fvf->decl9 conversion)
          * It is reachable through d3d8, but only for fixed-function.




More information about the wine-cvs mailing list