Fix crash bug where an index buffer was bound as a vertex buffer
This commit is contained in:
parent
861450ee3f
commit
8889aecaf6
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…
Add table
Add a link
Reference in a new issue