summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2015-07-20 00:09:20 +0200
committerTony Wasserka <neobrainx@gmail.com>2015-07-20 00:09:20 +0200
commit74b8c5947bdc7931e58fc6453df78841f7d3d655 (patch)
treeca9acac0921e74dba8e07beae17cc6eeb19f3c8c /src
parentMerge pull request #947 from archshift/hex-log (diff)
parentPica: Fix DP3 instruction, which wasn't assigning to the w component (diff)
downloadyuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar.gz
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar.bz2
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar.lz
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar.xz
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.tar.zst
yuzu-74b8c5947bdc7931e58fc6453df78841f7d3d655.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vertex_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 87006a832..d32c2e371 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -221,7 +221,7 @@ static void ProcessShaderCode(VertexShaderState& state) {
for (int i = 0; i < num_components; ++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))
continue;