From 8bb459aae568d0cfafad2c7dc4487ddea7307092 Mon Sep 17 00:00:00 2001 From: Vincent Duvert Date: Sun, 16 Oct 2016 12:48:32 +0200 Subject: [PATCH] VideoCommon: Fix GetInterpolationQualifier calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 4969415 modified calls to GetInterpolationQualifier, but mistakenly changed the order of some boolean parameters: GetInterpolationQualifier(true, false) was changed to GetInterpolationQualifier(…, false, true). Should fix #9783. --- Source/Core/VideoCommon/GeometryShaderGen.cpp | 2 +- Source/Core/VideoCommon/VertexShaderGen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index 90b9d01e16..2c196e10e7 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -106,7 +106,7 @@ ShaderCode GenerateGeometryShaderCode(APIType ApiType, const geometry_shader_uid out.Write("VARYING_LOCATION(0) out VertexData {\n"); GenerateVSOutputMembers( out, ApiType, uid_data->numTexGens, uid_data->pixel_lighting, - GetInterpolationQualifier(uid_data->msaa, uid_data->ssaa, false, true)); + GetInterpolationQualifier(uid_data->msaa, uid_data->ssaa, true, false)); if (uid_data->stereo) out.Write("\tflat int layer;\n"); diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index 11a9e40de0..d3ea2a774a 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -130,7 +130,7 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da out.Write("VARYING_LOCATION(0) out VertexData {\n"); GenerateVSOutputMembers( out, api_type, uid_data->numTexGens, uid_data->pixel_lighting, - GetInterpolationQualifier(uid_data->msaa, uid_data->ssaa, false, true)); + GetInterpolationQualifier(uid_data->msaa, uid_data->ssaa, true, false)); out.Write("} vs;\n"); } else