diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-28 21:20:33 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-29 05:08:09 +0100 |
commit | d151d797b1c281d5813ca705722f43b4be20ca6d (patch) | |
tree | dddce524fe7d6a1325af881a39b87c8a26a23275 | |
parent | Merge pull request #347 from bunnei/frameskip (diff) | |
download | yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar.gz yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar.bz2 yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar.lz yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar.xz yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.tar.zst yuzu-d151d797b1c281d5813ca705722f43b4be20ca6d.zip |
-rw-r--r-- | src/video_core/vertex_shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index e31bc3bc7..bed5081a0 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -469,6 +469,10 @@ OutputVertex RunShader(const InputVertex& input, int num_attributes) // Setup output register table OutputVertex ret; + // Zero output so that attributes which aren't output won't have denormals in them, which will + // slow us down later. + memset(&ret, 0, sizeof(ret)); + for (int i = 0; i < 7; ++i) { const auto& output_register_map = registers.vs_output_attributes[i]; |