clear the rom mesh buffer

This commit is contained in:
Ian Curtis 2016-03-26 22:48:51 +00:00
parent 4992e59673
commit ffaed8ae32

View file

@ -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 {