The tri_render_2d has issues with index buffer update. The index buffer is completely updated per layer. The update function needs to be extended like the vertex buffer update function where start and end indices can be set.
Edit:
Actually, the index buffer should be removed and only triangles can be drawn without using a index buffer. But triangle updates in the tri_render_2d has issues too.
The
tri_render_2d
has issues with index buffer update. The index buffer is completely updated per layer. The update function needs to be extended like the vertex buffer update function where start and end indices can be set.Edit: Actually, the index buffer should be removed and only triangles can be drawn without using a index buffer. But triangle updates in the
tri_render_2d
has issues too.This relates to the
line_render_2d
too.