From ffaed8ae32e606e9f3e46ef76258ab0ca8d84719 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sat, 26 Mar 2016 22:48:51 +0000 Subject: [PATCH] clear the rom mesh buffer --- Src/Graphics/New3D/New3D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index df6c886..d8b7d9b 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -176,6 +176,7 @@ void CNew3D::RenderFrame(void) //we will lose rom models for 1 frame is this happens, not the end of the world, as probably won't ever happen anyway if (m_polyBufferRom.size() >= MAX_ROM_POLYS) { m_polyBufferRom.clear(); + m_romMap.clear(); m_vbo.Reset(); } else {