Explorar o código

Pica: Fix DP3 instruction, which wasn't assigning to the w component

Yuri Kunde Schlesner %!s(int64=11) %!d(string=hai) anos
pai
achega
5a75cf8fd2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/vertex_shader.cpp

+ 1 - 1
src/video_core/vertex_shader.cpp

@@ -221,7 +221,7 @@ static void ProcessShaderCode(VertexShaderState& state) {
                 for (int i = 0; i < num_components; ++i)
                 for (int i = 0; i < num_components; ++i)
                     dot = dot + src1[i] * src2[i];
                     dot = dot + src1[i] * src2[i];
 
 
-                for (int i = 0; i < num_components; ++i) {
+                for (int i = 0; i < 4; ++i) {
                     if (!swizzle.DestComponentEnabled(i))
                     if (!swizzle.DestComponentEnabled(i))
                         continue;
                         continue;