summaryrefslogtreecommitdiffstats
path: root/Imgui/src/ImGuiImplDiligent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Imgui/src/ImGuiImplDiligent.cpp')
-rw-r--r--Imgui/src/ImGuiImplDiligent.cpp4
1 files changed, 2 insertions, 2 deletions
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<ITextureView*>(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;