Skip to content

Commit

Permalink
ImTextureID is now uint64_t starting from ImGui v1.91.4
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Oct 28, 2024
1 parent 23512f5 commit 6dad911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvk/HelpersImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ImGuiRenderer::ImGuiRenderer(lvk::IContext& device, const char* defaultFontTTF,

ImGuiRenderer::~ImGuiRenderer() {
ImGuiIO& io = ImGui::GetIO();
io.Fonts->TexID = nullptr;
io.Fonts->TexID = 0;
#if defined(LVK_WITH_IMPLOT)
ImPlot::DestroyContext();
#endif // LVK_WITH_IMPLOT
Expand Down Expand Up @@ -265,7 +265,7 @@ void ImGuiRenderer::endFrame(lvk::ICommandBuffer& cmdBuffer) {
} bindData = {
.LRTB = {L, R, T, B},
.vb = ctx_.gpuAddress(drawableData.vb_),
.textureId = static_cast<uint32_t>(reinterpret_cast<ptrdiff_t>(cmd.TextureId)),
.textureId = static_cast<uint32_t>(cmd.TextureId),
};
cmdBuffer.cmdPushConstants(bindData);
cmdBuffer.cmdBindScissorRect(
Expand Down

0 comments on commit 6dad911

Please sign in to comment.