From 21b3cd4759e781e093597629fefb41d7bddca00b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 27 Aug 2017 11:55:24 +1000 Subject: [PATCH] OGL: Fix EFB pokes using incorrect color/depth --- Source/Core/VideoBackends/OGL/FramebufferManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/VideoBackends/OGL/FramebufferManager.cpp b/Source/Core/VideoBackends/OGL/FramebufferManager.cpp index e0d408c22f..91be73a9f3 100644 --- a/Source/Core/VideoBackends/OGL/FramebufferManager.cpp +++ b/Source/Core/VideoBackends/OGL/FramebufferManager.cpp @@ -343,16 +343,16 @@ FramebufferManager::FramebufferManager(int targetWidth, int targetHeight, int ms ProgramShaderCache::CompileShader( m_EfbPokes, StringFromFormat("in vec2 rawpos;\n" - "in vec4 color0;\n" // color - "in int color1;\n" // depth + "in vec4 rawcolor0;\n" // color + "in int rawcolor1;\n" // depth "out vec4 v_c;\n" "out float v_z;\n" "void main(void) {\n" " gl_Position = vec4(((rawpos + 0.5) / vec2(640.0, 528.0) * 2.0 - 1.0) * " "vec2(1.0, -1.0), 0.0, 1.0);\n" " gl_PointSize = %d.0 / 640.0;\n" - " v_c = color0.bgra;\n" - " v_z = float(color1 & 0xFFFFFF) / 16777216.0;\n" + " v_c = rawcolor0.bgra;\n" + " v_z = float(rawcolor1 & 0xFFFFFF) / 16777216.0;\n" "}\n", m_targetWidth),