summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2016-09-01 02:34:37 -0400
committerGitHub <noreply@github.com>2016-09-01 02:34:37 -0400
commitb7933c49b62c3d00a7f8f9d9a89d5b499accefee (patch)
treed75faa883964a49eea54365a1e1ba17f9d4d7b4d /Source/Core/VideoCommon
parent15a009706dd86309dcef52fb61b31bf331f6dba0 (diff)
parente0d4dc6fed771153a10f22757e59464f15462700 (diff)
Merge pull request #4167 from EmptyChaos/fix-d3d-x3014
VertexShaderGen: Fix D3D11 X3014 compile error
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/VertexShaderGen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp
index 5c516e0053..ba7fc3a02e 100644
--- a/Source/Core/VideoCommon/VertexShaderGen.cpp
+++ b/Source/Core/VideoCommon/VertexShaderGen.cpp
@@ -388,7 +388,9 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da
if (texinfo.texgentype == XF_TEXGEN_REGULAR)
{
out.Write("if(o.tex%d.z == 0.0f)\n", i);
- out.Write("\to.tex%d.xy = clamp(o.tex%d.xy / 2.0f, float2(-1.0f), float2(1.0f));\n", i, i);
+ out.Write(
+ "\to.tex%d.xy = clamp(o.tex%d.xy / 2.0f, float2(-1.0f,-1.0f), float2(1.0f,1.0f));\n", i,
+ i);
}
out.Write("}\n");