mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #4167 from EmptyChaos/fix-d3d-x3014
VertexShaderGen: Fix D3D11 X3014 compile error
This commit is contained in:
@ -388,7 +388,9 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da
|
|||||||
if (texinfo.texgentype == XF_TEXGEN_REGULAR)
|
if (texinfo.texgentype == XF_TEXGEN_REGULAR)
|
||||||
{
|
{
|
||||||
out.Write("if(o.tex%d.z == 0.0f)\n", i);
|
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");
|
out.Write("}\n");
|
||||||
|
Reference in New Issue
Block a user