summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-17 04:29:05 +0200
committerLioncash <mathew1800@gmail.com>2020-04-17 04:29:07 +0200
commitf522abd8abab3ead966cbba6fae0c55ba1215592 (patch)
treed599f5b036c466729f9577783e8aee7f4fe08d11 /src
parentdecode/texture: Eliminate trivial missing field initializer warnings (diff)
downloadyuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar.gz
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar.bz2
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar.lz
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar.xz
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.tar.zst
yuzu-f522abd8abab3ead966cbba6fae0c55ba1215592.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/texture.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp
index cc6491323..0b9817093 100644
--- a/src/video_core/shader/decode/texture.cpp
+++ b/src/video_core/shader/decode/texture.cpp
@@ -176,9 +176,7 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) {
: GetSampler(instr.sampler, {{texture_type, is_array, false, false}});
Node4 values;
if (sampler == nullptr) {
- for (u32 element = 0; element < values.size(); ++element) {
- values[element] = Immediate(0);
- }
+ std::generate(values.begin(), values.end(), [] { return Immediate(0); });
WriteTexInstructionFloat(bb, instr, values);
break;
}