diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-12-18 19:53:53 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-12-19 02:24:41 +0100 |
| commit | e7e8a4f1cb3d1c7801c18f4d3ff5cae797d5f5b3 (patch) | |
| tree | c0983246c4df7ea02920f9d89c7bf9e08067e371 /Source/Core/VideoCommon/GeometryShaderGen.cpp | |
| parent | 8dc3653ac9ec07040c8bcd0748c8040cf831d632 (diff) | |
GeometryShaderGen: Don't use the reserved keyword "point" in D3D.
Diffstat (limited to 'Source/Core/VideoCommon/GeometryShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GeometryShaderGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index 4a6b4dce55..cabdfea191 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -159,13 +159,13 @@ static inline void GenerateGeometryShader(T& out, u32 primitive_type, API_TYPE A else if (primitive_type == PRIMITIVE_POINTS) { if (ApiType == API_OPENGL) - out.Write("\tVS_OUTPUT point = vs[0].o;\n"); + out.Write("\tVS_OUTPUT center = vs[0].o;\n"); else - out.Write("\tVS_OUTPUT point = o[0];\n"); + out.Write("\tVS_OUTPUT center = o[0];\n"); // Offset from center to upper right vertex // Lerp PointSize/2 from [0,0..VpWidth,VpHeight] to [-1,1..1,-1] - out.Write("float2 offset = float2(" I_LINEPTPARAMS".w / " I_LINEPTPARAMS".x, -" I_LINEPTPARAMS".w / " I_LINEPTPARAMS".y) * point.pos.w;\n"); + out.Write("\tfloat2 offset = float2(" I_LINEPTPARAMS".w / " I_LINEPTPARAMS".x, -" I_LINEPTPARAMS".w / " I_LINEPTPARAMS".y) * center.pos.w;\n"); } if (g_ActiveConfig.iStereoMode > 0) |
