mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 17:22:46 +01:00
Merge pull request #1001 from lioncash/reserve
gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()
This commit is contained in:
commit
05c33d89a1
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,8 @@ private:
|
||||||
|
|
||||||
/// Build the GLSL register list.
|
/// Build the GLSL register list.
|
||||||
void BuildRegisterList() {
|
void BuildRegisterList() {
|
||||||
|
regs.reserve(Register::NumRegisters);
|
||||||
|
|
||||||
for (size_t index = 0; index < Register::NumRegisters; ++index) {
|
for (size_t index = 0; index < Register::NumRegisters; ++index) {
|
||||||
regs.emplace_back(index, suffix);
|
regs.emplace_back(index, suffix);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue