diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-09 23:29:09 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-09 23:29:11 +0200 |
commit | 6ef027b958471dbd67dadbad5838f9cd246177ae (patch) | |
tree | ee18894d54973d9f1ac913545641cf30a5c0534e /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #992 from bunnei/declr-pred (diff) | |
download | yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar.gz yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar.bz2 yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar.lz yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar.xz yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.tar.zst yuzu-6ef027b958471dbd67dadbad5838f9cd246177ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index ea7779429..32f06f409 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -507,6 +507,8 @@ private: /// Build the GLSL register list. void BuildRegisterList() { + regs.reserve(Register::NumRegisters); + for (size_t index = 0; index < Register::NumRegisters; ++index) { regs.emplace_back(index, suffix); } |