diff --git a/rpcs3/Emu/RSX/Program/GLSLCommon.cpp b/rpcs3/Emu/RSX/Program/GLSLCommon.cpp index ea1e9572a0..9aa0d86314 100644 --- a/rpcs3/Emu/RSX/Program/GLSLCommon.cpp +++ b/rpcs3/Emu/RSX/Program/GLSLCommon.cpp @@ -289,10 +289,10 @@ namespace glsl "vec4 fetch_attribute(const in attribute_desc desc, const in int vertex_id, usamplerBuffer input_stream)\n" "{\n" - " const int elem_size_table[] = { 2, 4, 2, 1, 2, 4, 1 };\n" - " const float scaling_table[] = { 32767.5, 1., 1., 255., 1., 32767., 1. };\n" - " const int elem_size = elem_size_table[desc.type - 1];\n" - " const vec4 scale = scaling_table[desc.type - 1].xxxx;\n\n" + " const int elem_size_table[] = { 0, 2, 4, 2, 1, 2, 4, 1 };\n" + " const float scaling_table[] = { 1., 32767.5, 1., 1., 255., 1., 32767., 1. };\n" + " const int elem_size = elem_size_table[desc.type];\n" + " const vec4 scale = scaling_table[desc.type].xxxx;\n\n" " uvec4 tmp, result = uvec4(0u);\n" " vec4 ret;\n"