Fixed HUGE memory leak (Thanks to Raakz, again)

Former-commit-id: 5a0acd6816b95b83484b20dbbdf8c5e9b4e9f237
This commit is contained in:
Lynix 2013-07-02 14:57:24 +02:00
parent 321d4df911
commit 3c1c04b2aa
1 changed files with 1 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ bool NzRenderer::EnsureStateUpdate()
if (s_useVertexArrayObjects)
{
// Note: Les VAOs ne sont pas partagés entre les contextes, nous avons donc un tableau de VAOs par contexte
auto vaos = s_vaos[NzContext::GetCurrent()];
auto& vaos = s_vaos[NzContext::GetCurrent()];
// Notre clé est composée de ce qui définit un VAO
VAO_Key key(s_indexBuffer, s_vertexBuffer, s_vertexBuffer->GetVertexDeclaration(), (s_instancing) ? s_instancingDeclaration : nullptr);