summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferShaderGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/FramebufferShaderGen.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/FramebufferShaderGen.cpp b/Source/Core/VideoCommon/FramebufferShaderGen.cpp
index 00ff753d92..4917b2dba7 100644
--- a/Source/Core/VideoCommon/FramebufferShaderGen.cpp
+++ b/Source/Core/VideoCommon/FramebufferShaderGen.cpp
@@ -651,14 +651,11 @@ std::string GenerateEFBRestorePixelShader()
EmitPixelMainDeclaration(ss, 1, 0, "float4",
GetAPIType() == APIType::D3D ? "out float depth : SV_Depth, " : "");
ss << "{\n";
- ss << " float3 coords = float3(v_tex0.x, "
- << (g_ActiveConfig.backend_info.bUsesLowerLeftOrigin ? "1.0 - " : "")
- << "v_tex0.y, v_tex0.z);\n";
ss << " ocol0 = ";
- EmitSampleTexture(ss, 0, "coords");
+ EmitSampleTexture(ss, 0, "v_tex0");
ss << ";\n";
ss << " " << (GetAPIType() == APIType::D3D ? "depth" : "gl_FragDepth") << " = ";
- EmitSampleTexture(ss, 1, "coords");
+ EmitSampleTexture(ss, 1, "v_tex0");
ss << ".r;\n";
ss << "}\n";
return ss.str();