Skip to content

Commit 604a93f

Browse files
bderodnfield
authored andcommitted
Fix prod build (#23)
1 parent 9ecbb76 commit 604a93f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impeller/playground/imgui/imgui_impl_impeller.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr<impeller::Context> context) {
7373
IM_ASSERT(bd->font_texture != nullptr &&
7474
"Could not allocate ImGui font texture.");
7575

76-
bool uploaded = bd->font_texture->SetContents(pixels, width * height * 4);
76+
[[maybe_unused]] bool uploaded = bd->font_texture->SetContents(
77+
pixels, texture_descriptor.GetSizeOfBaseMipLevel());
7778
IM_ASSERT(uploaded &&
7879
"Could not upload ImGui font texture to device memory.");
7980
}

0 commit comments

Comments
 (0)