Skip to content

Commit

Permalink
Set z-position for opengl, too
Browse files Browse the repository at this point in the history
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6056 8ced0084-cf51-0410-be5f-012b33b47a6e
  • Loading branch information
pierrewillenbrock committed Aug 5, 2010
1 parent 7a80e8e commit 9e4ff17
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/Core/VideoCommon/Src/VertexShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,7 @@ const char *GenerateVertexShaderCode(u32 components, API_TYPE api_type)

//write the true depth value, if the game uses depth textures pixel shaders will override with the correct values
//if not early z culling will improve speed
if (is_d3d)
{
WRITE(p, "o.pos.z = "I_DEPTHPARAMS".x * o.pos.w + o.pos.z * "I_DEPTHPARAMS".y;\n");
}
WRITE(p, "o.pos.z = "I_DEPTHPARAMS".x * o.pos.w + o.pos.z * "I_DEPTHPARAMS".y;\n");

WRITE(p, "return o;\n}\n");

Expand Down

0 comments on commit 9e4ff17

Please sign in to comment.