wined3d: Remove a hack that slipped in.

This commit is contained in:
Stefan Dösinger 2007-11-14 21:49:14 +01:00 committed by Alexandre Julliard
parent f13bb40671
commit 683c258ff4
1 changed files with 1 additions and 3 deletions

View File

@ -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");