H. Verbeet : wined3d: Remove some redundant checks in the vertexdeclaration () state handler.

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


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

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

wined3d: Remove some redundant checks in the vertexdeclaration() state handler.

---

 dlls/wined3d/state.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 5b4a304..f3acb3b 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2905,10 +2905,7 @@ static void vertexdeclaration(DWORD state, IWineD3DStateBlockImpl *stateblock, W
 
     handleStreams(stateblock, useVertexShaderFunction, context);
 
-    /* Do I have to use ? TRUE : FALSE ? Or can I rely on 15==15 being equal to TRUE(=1)? */
-    transformed = ((device->strided_streams.u.s.position.lpData != NULL ||
-                    device->strided_streams.u.s.position.VBO != 0) &&
-                    device->strided_streams.u.s.position_transformed) ? TRUE : FALSE;
+    transformed = device->strided_streams.u.s.position_transformed;
     if (transformed) useVertexShaderFunction = FALSE;
 
     if(transformed != context->last_was_rhw && !useVertexShaderFunction) {




More information about the wine-cvs mailing list