- fixed bad function call in vertex buffer init code.

This commit is contained in:
Christoph Oelckers 2016-08-10 00:35:42 +02:00
parent 36a4352867
commit 0e5a3ebe50

View file

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