Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't define clipPos twice
fix issue 6378
  • Loading branch information
degasus committed Jun 17, 2013
1 parent 88bc825 commit c57a90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/Src/PixelShaderGen.cpp
Expand Up @@ -473,7 +473,7 @@ static void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_TYPE Api
if (numTexgen < 7)
out.Write("\tclipPos = float4(rawpos.x, rawpos.y, clipPos.z, clipPos.w);\n");
else
out.Write("\tfloat4 clipPos = float4(rawpos.x, rawpos.y, uv2.w, uv3.w);\n");
out.Write("\tclipPos = float4(rawpos.x, rawpos.y, uv2.w, uv3.w);\n");

// HACK to handle cases where the tex gen is not enabled
if (numTexgen == 0)
Expand Down

0 comments on commit c57a90c

Please sign in to comment.