This commit is contained in:
Brandon DeRosier
2022-02-23 15:26:05 -08:00
committed by Dan Field
parent 8e26f6562b
commit d94b25217e

View File

@@ -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.");
}