vertex shader generator: don't multiply z by two in d3d mode (thanks drk|razi)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4098 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-08-29 12:15:59 +00:00
parent 78bd8c874a
commit 8827c22c60
4 changed files with 11 additions and 23 deletions

View File

@ -86,7 +86,7 @@ void VertexShaderCache::SetShader(u32 components)
}
bool HLSL = false;
const char *code = GenerateVertexShader(components);
const char *code = GenerateVertexShader(components, true);
LPDIRECT3DVERTEXSHADER9 shader = HLSL ? D3D::CompileVertexShader(code, (int)strlen(code), false) : CompileCgShader(code);
if (shader)
{