diff options
| author | degasus <wickmarkus@web.de> | 2013-10-15 14:31:02 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-10-15 14:31:02 +0200 |
| commit | f62579761cadc44e72c296e537224d937ba67d82 (patch) | |
| tree | 6386a793e19bdb244c663ad4c15570635cb1ff0a /Source/Core/VideoCommon/Src/PixelShaderGen.cpp | |
| parent | 72c1e143f351bc9a3c8d7e6cb07d20b0bab58557 (diff) | |
ShaderGen: remove nonsense for() if() {}
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 39bbdc6316..9dfa6cf064 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -318,9 +318,8 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T // Let's set up attributes if (xfregs.numTexGen.numTexGens < 7) { - for (int i = 0; i < 8; ++i) - if(i < xfregs.numTexGen.numTexGens) - out.Write("VARYIN float3 uv%d_2;\n", i); + for (int i = 0; i < xfregs.numTexGen.numTexGens; ++i) + out.Write("VARYIN float3 uv%d_2;\n", i); out.Write("VARYIN float4 clipPos_2;\n"); if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting) { |
