diff --git a/src/common/rendering/hwrenderer/hw_draw2d.cpp b/src/common/rendering/hwrenderer/hw_draw2d.cpp index 6300d6d025..4f556e77dc 100644 --- a/src/common/rendering/hwrenderer/hw_draw2d.cpp +++ b/src/common/rendering/hwrenderer/hw_draw2d.cpp @@ -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;