Skip to content

Commit

Permalink
Fix prod build (flutter#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored and dnfield committed Apr 27, 2022
1 parent 9ecbb76 commit 604a93f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impeller/playground/imgui/imgui_impl_impeller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr<impeller::Context> 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.");
}
Expand Down

0 comments on commit 604a93f

Please sign in to comment.