mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed crash with legacy render path
https://forum.zdoom.org/viewtopic.php?t=60727
This commit is contained in:
parent
edabe43bca
commit
7b619bc78c
1 changed files with 1 additions and 4 deletions
|
@ -249,10 +249,7 @@ void FFlatVertexBuffer::Unmap()
|
|||
void FFlatVertexBuffer::CreateVBO()
|
||||
{
|
||||
vbo_shadowdata.Resize(mNumReserved);
|
||||
if (!gl.legacyMode)
|
||||
{
|
||||
FFlatVertexGenerator::CreateVertices();
|
||||
}
|
||||
mCurIndex = mIndex = vbo_shadowdata.Size();
|
||||
Map();
|
||||
memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex));
|
||||
|
|
Loading…
Reference in a new issue