From d94b25217e5855ba50443669e66d4fb21a2ee468 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Wed, 23 Feb 2022 15:26:05 -0800 Subject: [PATCH] Fix prod build (flutter/engine#23) --- .../flutter/impeller/playground/imgui/imgui_impl_impeller.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.cc b/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.cc index bda00edc5c..0d898b151a 100644 --- a/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.cc +++ b/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.cc @@ -73,7 +73,8 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr context) { IM_ASSERT(bd->font_texture != nullptr && "Could not allocate ImGui font texture."); - bool uploaded = bd->font_texture->SetContents(pixels, width * height * 4); + [[maybe_unused]] bool uploaded = bd->font_texture->SetContents( + pixels, texture_descriptor.GetSizeOfBaseMipLevel()); IM_ASSERT(uploaded && "Could not upload ImGui font texture to device memory."); }