From 62dbbec16e3fbd9c6a7ab8943e727676d2ca5d20 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 19 Oct 2019 12:49:52 -0700 Subject: Few updates to comply with API version 240033 --- Imgui/src/ImGuiImplDiligent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Imgui/src/ImGuiImplDiligent.cpp') diff --git a/Imgui/src/ImGuiImplDiligent.cpp b/Imgui/src/ImGuiImplDiligent.cpp index 65bf9c9..d85a54a 100644 --- a/Imgui/src/ImGuiImplDiligent.cpp +++ b/Imgui/src/ImGuiImplDiligent.cpp @@ -406,10 +406,10 @@ void ImGuiImplDiligent_Internal::RenderDrawData(IDeviceContext* pCtx, ImDrawData auto* texture_srv = reinterpret_cast(pcmd->TextureId); VERIFY_EXPR(texture_srv == m_pFontSRV); //ctx->PSSetShaderResources(0, 1, &texture_srv); - DrawAttribs DrawAttrs(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? VT_UINT16 : VT_UINT32, DRAW_FLAG_VERIFY_STATES); + DrawIndexedAttribs DrawAttrs(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? VT_UINT16 : VT_UINT32, DRAW_FLAG_VERIFY_STATES); DrawAttrs.FirstIndexLocation = pcmd->IdxOffset + global_idx_offset; DrawAttrs.BaseVertex = pcmd->VtxOffset + global_vtx_offset; - pCtx->Draw(DrawAttrs); + pCtx->DrawIndexed(DrawAttrs); } } global_idx_offset += cmd_list->IdxBuffer.Size; -- cgit v1.2.3