From efa501dac67bc8980f9c85036dca5d417a90ad9c Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 6 Sep 2019 00:50:49 +0300 Subject: [PATCH] rsx/vp: Set default inputs to (0, 0, 0, 1) - From some hw tests, it seems this is the default. --- rpcs3/Emu/RSX/Common/GLSLCommon.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/GLSLCommon.h b/rpcs3/Emu/RSX/Common/GLSLCommon.h index ba66a5e1b8..914f9f891c 100644 --- a/rpcs3/Emu/RSX/Common/GLSLCommon.h +++ b/rpcs3/Emu/RSX/Common/GLSLCommon.h @@ -404,19 +404,8 @@ namespace glsl " attribute_desc desc = fetch_desc(location);\n" " if (desc.attribute_size == 0)\n" " {\n" - " //default values\n" - " const vec4 defaults[] = \n" - " { vec4(0., 0., 0., 1.), //position\n" - " vec4(0.), vec4(0.), //weight, normals\n" - " vec4(1.), //diffuse\n" - " vec4(0.), vec4(0.), //specular, fog\n" - " vec4(1.), //point size\n" - " vec4(0.), //in_7\n" - " //in_tc registers\n" - " vec4(0.), vec4(0.), vec4(0.), vec4(0.),\n" - " vec4(0.), vec4(0.), vec4(0.), vec4(0.)\n" - " };\n" - " return defaults[location];\n" + " //default value\n" + " return vec4(0., 0., 0., 1.);\n" " }\n\n" " int vertex_id = " << vertex_id_name << " - int(vertex_base_index);\n" " if (desc.frequency == 0)\n"