mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +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()
|
void FFlatVertexBuffer::CreateVBO()
|
||||||
{
|
{
|
||||||
vbo_shadowdata.Resize(mNumReserved);
|
vbo_shadowdata.Resize(mNumReserved);
|
||||||
if (!gl.legacyMode)
|
|
||||||
{
|
|
||||||
FFlatVertexGenerator::CreateVertices();
|
FFlatVertexGenerator::CreateVertices();
|
||||||
}
|
|
||||||
mCurIndex = mIndex = vbo_shadowdata.Size();
|
mCurIndex = mIndex = vbo_shadowdata.Size();
|
||||||
Map();
|
Map();
|
||||||
memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex));
|
memcpy(map, &vbo_shadowdata[0], vbo_shadowdata.Size() * sizeof(FFlatVertex));
|
||||||
|
|
Loading…
Reference in a new issue