From e0d4dc6fed771153a10f22757e59464f15462700 Mon Sep 17 00:00:00 2001 From: EmptyChaos Date: Thu, 1 Sep 2016 04:43:19 +0000 Subject: [PATCH] VertexShaderGen: Fix D3D X3014 compile error float2 requires 2 parameters in HLSL apparently. --- Source/Core/VideoCommon/VertexShaderGen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");