Using reserve if possible

This commit is contained in:
Herman Semenov
2023-12-12 15:13:43 +03:00
parent 60402909f8
commit de80cc3883
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -1141,6 +1141,7 @@ bool ShaderManagerGLES::LoadCache(File::IOFile &f) {
}
}
linkedShaderCache_.reserve(pending.link.size() - pending.linkPos);
for (size_t &i = pending.linkPos; i < pending.link.size(); i++) {
const VShaderID &vsid = pending.link[i].first;
const FShaderID &fsid = pending.link[i].second;