mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
Fix crash bug where an index buffer was bound as a vertex buffer
This commit is contained in:
parent
bb111fa96d
commit
fd2b1e523c
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ void Draw2D(F2DDrawer* drawer, FRenderState& state, int x, int y, int width, int
|
|||
state.SetIndexBuffer(buffers.GetBufferObjects().second);
|
||||
state.DrawIndexed(DT_Triangles, 0, cmd.shape2DIndexCount);
|
||||
state.SetVertexBuffer(vb.GetBufferObjects().first);
|
||||
state.SetVertexBuffer(vb.GetBufferObjects().second);
|
||||
state.SetIndexBuffer(vb.GetBufferObjects().second);
|
||||
if (cmd.shape2DCommandCounter == cmd.shape2DBufInfo->lastCommand)
|
||||
{
|
||||
cmd.shape2DBufInfo->lastCommand = -1;
|
||||
|
|
Loading…
Reference in a new issue