- fixed crash with legacy render path

https://forum.zdoom.org/viewtopic.php?t=60727
This commit is contained in:
alexey.lysiuk 2018-06-01 12:28:27 +03:00
parent edabe43bca
commit 7b619bc78c

View file

@ -249,10 +249,7 @@ void FFlatVertexBuffer::Unmap()
void FFlatVertexBuffer::CreateVBO()
{
vbo_shadowdata.Resize(mNumReserved);
if (!gl.legacyMode)
{
FFlatVertexGenerator::CreateVertices();
}
FFlatVertexGenerator::CreateVertices();
mCurIndex = mIndex = vbo_shadowdata.Size();
Map();
memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex));