diff --git a/src/gl/imgui_impl_opengl3.cpp b/src/gl/imgui_impl_opengl3.cpp index f937190..089648e 100644 --- a/src/gl/imgui_impl_opengl3.cpp +++ b/src/gl/imgui_impl_opengl3.cpp @@ -100,7 +100,7 @@ static void ImGui_ImplOpenGL3_DestroyFontsTexture() { ImGuiIO& io = ImGui::GetIO(); glDeleteTextures(1, &g_FontTexture); - io.Fonts->TexID = 0; + io.Fonts->SetTexID(0); g_FontTexture = 0; } } @@ -128,7 +128,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture() glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, width, height, 0, GL_RED, GL_UNSIGNED_BYTE, pixels); // Store our identifier - io.Fonts->TexID = (ImTextureID)(intptr_t)g_FontTexture; + io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontTexture); // Restore state glBindTexture(GL_TEXTURE_2D, last_texture); diff --git a/src/vulkan.cpp b/src/vulkan.cpp index b41702c..9ffb324 100644 --- a/src/vulkan.cpp +++ b/src/vulkan.cpp @@ -969,7 +969,7 @@ static void check_fonts(struct swapchain_data* data) else desc_set = create_image_with_desc(data, width, height, VK_FORMAT_R8_UNORM, data->font_image, data->font_mem, data->font_image_view); - io.Fonts->TexID = (ImTextureID) desc_set; + io.Fonts->SetTexID((ImTextureID)desc_set); data->font_uploaded = false; data->sw_stats.font_params_hash = params.font_params_hash;