Stefan Dösinger : wined3d: Remove a hack that slipped in.

Alexandre Julliard julliard at winehq.org
Fri Nov 16 08:31:20 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Nov 14 21:49:14 2007 +0100

wined3d: Remove a hack that slipped in.

---

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

diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c
index e957eb4..5baf00d 100644
--- a/dlls/wined3d/vertexshader.c
+++ b/dlls/wined3d/vertexshader.c
@@ -349,9 +349,7 @@ static VOID IWineD3DVertexShaderImpl_GenerateShader(
          * before the homogenous divide, so we have to take the w into account: z = ((z / w) * 2 - 1) * w,
          * which is the same as z = z / 2 - w.
          */
-        shader_addline(&buffer, "tmp0 = gl_Position;\n");
-        shader_addline(&buffer, "gl_Position.z = tmp0.z * 2.0;\n");
-        shader_addline(&buffer, "gl_Position.z = gl_Position.z - gl_Position.w;\n");
+        shader_addline(&buffer, "gl_Position.z = gl_Position.z * 2.0 - gl_Position.w;\n");
 
         shader_addline(&buffer, "}\n");
 




More information about the wine-cvs mailing list