summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-06-24 07:05:05 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-24 07:05:05 +0200
commit10a83653eed5a281cfe2aa8cd7615ba6d185526e (patch)
treeb0523621a53550766dfd8238fad2dfe18ba67d78 /src
parentrenderer_opengl/utils: Remove unused includes and unused forward declaration (diff)
downloadyuzu-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')
-rw-r--r--src/video_core/shader/decode/texture.cpp1
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++));
}