mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 16:40:56 +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 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;
|
float diff;
|
||||||
|
|
||||||
// Create the actual vertices.
|
// Create the actual vertices.
|
||||||
|
@ -171,9 +171,12 @@ int FFlatVertexBuffer::CreateIndexedSectorVertices(sector_t *sec, const secplane
|
||||||
vbo_shadowdata[vi + i].z += diff;
|
vbo_shadowdata[vi + i].z += diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rt = ibo_data.Size();
|
unsigned rt = ibo_data.Reserve(verts.indices.Size());
|
||||||
ibo_data.Append(verts.indices);
|
for (unsigned i = 0; i < verts.indices.Size(); i++)
|
||||||
return rt;
|
{
|
||||||
|
ibo_data[rt + i] = vi + verts.indices[i];
|
||||||
|
}
|
||||||
|
return (int)rt;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue