From 88e68ecb21ecb129a976bed42f9b73968c8a1949 Mon Sep 17 00:00:00 2001 From: Dicky Date: Tue, 25 Jun 2024 14:57:27 +0800 Subject: [PATCH] update submodules and modify code since we changed API --- imgui | 2 +- test/immidi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui b/imgui index b9c805d..4dd4e98 160000 --- a/imgui +++ b/imgui @@ -1 +1 @@ -Subproject commit b9c805d32999c5fbbc4a4acc24216eeafcf78c99 +Subproject commit 4dd4e98e9cd97189087398ab5cd1894dc2de5bf2 diff --git a/test/immidi.cpp b/test/immidi.cpp index f6acc45..1d04a1b 100644 --- a/test/immidi.cpp +++ b/test/immidi.cpp @@ -270,7 +270,7 @@ struct audio_channel_data ImTextureID texture_spectrogram {nullptr}; float m_decibel {0}; int m_DBMaxIndex {-1}; - ~audio_channel_data() { if (texture_spectrogram) ImGui::ImDestroyTexture(texture_spectrogram); } + ~audio_channel_data() { ImGui::ImDestroyTexture(&texture_spectrogram); } }; static MFnode *current_MFnode = NULL;