diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 4c380677d465899be4a746b6738d2b7a9cc74230..6d4658c8bf562a6be978b26f9f000a76de1ef8c9 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -371,7 +371,7 @@ private:
             location += GENERIC_VARYING_START_LOCATION;
         }
 
-        code.AddLine("layout (location = {}) {} in vec4 {};", name, location, suffix, name);
+        code.AddLine("layout (location = {}) {} in vec4 {};", location, suffix, name);
     }
 
     void DeclareOutputAttributes() {