- 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
1 changed files with 1 additions and 1 deletions

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