Skip to content

Commit 9ab25fb

Browse files
ImGui: fixed type cast to ImTextureID (close #240)
1 parent 14ef7bd commit 9ab25fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Imgui/src/ImGuiDiligentRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ void ImGuiDiligentRenderer::CreateFontsTexture()
753753
VERIFY_EXPR(m_pTextureVar != nullptr);
754754

755755
// Store our identifier
756-
IO.Fonts->TexID = (ImTextureID)m_pFontSRV;
756+
IO.Fonts->TexID = reinterpret_cast<ImTextureID>(m_pFontSRV.RawPtr());
757757
}
758758

759759
float4 ImGuiDiligentRenderer::TransformClipRect(const ImVec2& DisplaySize, const float4& rect) const

0 commit comments

Comments
 (0)