Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ecbb76 commit 604a93fCopy full SHA for 604a93f
impeller/playground/imgui/imgui_impl_impeller.cc
@@ -73,7 +73,8 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr<impeller::Context> context) {
73
IM_ASSERT(bd->font_texture != nullptr &&
74
"Could not allocate ImGui font texture.");
75
76
- bool uploaded = bd->font_texture->SetContents(pixels, width * height * 4);
+ [[maybe_unused]] bool uploaded = bd->font_texture->SetContents(
77
+ pixels, texture_descriptor.GetSizeOfBaseMipLevel());
78
IM_ASSERT(uploaded &&
79
"Could not upload ImGui font texture to device memory.");
80
}
0 commit comments