- 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

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));