mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- flatvertex generation is working again.
This commit is contained in:
parent
625eb1e76a
commit
50bd9c3594
1 changed files with 7 additions and 4 deletions
|
@ -159,7 +159,7 @@ static F3DFloor *Find3DFloor(sector_t *target, sector_t *model)
|
|||
|
||||
int FFlatVertexBuffer::CreateIndexedSectorVertices(sector_t *sec, const secplane_t &plane, int floor, VertexContainer &verts)
|
||||
{
|
||||
int vi = vbo_shadowdata.Reserve(verts.vertices.Size());
|
||||
unsigned vi = vbo_shadowdata.Reserve(verts.vertices.Size());
|
||||
float diff;
|
||||
|
||||
// Create the actual vertices.
|
||||
|
@ -171,9 +171,12 @@ int FFlatVertexBuffer::CreateIndexedSectorVertices(sector_t *sec, const secplane
|
|||
vbo_shadowdata[vi + i].z += diff;
|
||||
}
|
||||
|
||||
int rt = ibo_data.Size();
|
||||
ibo_data.Append(verts.indices);
|
||||
return rt;
|
||||
unsigned rt = ibo_data.Reserve(verts.indices.Size());
|
||||
for (unsigned i = 0; i < verts.indices.Size(); i++)
|
||||
{
|
||||
ibo_data[rt + i] = vi + verts.indices[i];
|
||||
}
|
||||
return (int)rt;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue