diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-24 07:05:05 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-24 07:05:05 +0200 |
commit | 10a83653eed5a281cfe2aa8cd7615ba6d185526e (patch) | |
tree | b0523621a53550766dfd8238fad2dfe18ba67d78 /src/video_core/shader | |
parent | renderer_opengl/utils: Remove unused includes and unused forward declaration (diff) | |
download | yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar.gz yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar.bz2 yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar.lz yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar.xz yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.tar.zst yuzu-10a83653eed5a281cfe2aa8cd7615ba6d185526e.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/decode/texture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp index b22831c64..cb480be9b 100644 --- a/src/video_core/shader/decode/texture.cpp +++ b/src/video_core/shader/decode/texture.cpp @@ -597,6 +597,7 @@ Node4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) { const Node array_register{is_array ? GetRegister(gpr8_cursor++) : nullptr}; std::vector<Node> coords; + coords.reserve(coord_count); for (std::size_t i = 0; i < coord_count; ++i) { coords.push_back(GetRegister(gpr8_cursor++)); } |