- restored a line that got accidentally deleted.

This commit is contained in:
Christoph Oelckers 2016-08-08 20:47:54 +02:00
parent e5f88a9883
commit 56a60ebe85
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@ void FFlatVertexBuffer::UpdatePlaneVertices(sector_t *sec, int plane)
void FFlatVertexBuffer::CreateVBO() void FFlatVertexBuffer::CreateVBO()
{ {
vbo_shadowdata.Reserve(mNumReserved);
CreateFlatVBO(); CreateFlatVBO();
mCurIndex = mIndex = vbo_shadowdata.Size(); mCurIndex = mIndex = vbo_shadowdata.Size();
memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex)); memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex));