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 76bcd95 commit cc6f8bcCopy full SHA for cc6f8bc
core/src/debug_ui/display_object.rs
@@ -728,6 +728,12 @@ impl DisplayObjectWindow {
728
) {
729
let bitmap_data = object.bitmap_data(context.renderer);
730
let bitmap_data = bitmap_data.read();
731
+
732
+ if bitmap_data.width() == 0 || bitmap_data.height() == 0 {
733
+ ui.weak("(no pixels)");
734
+ return;
735
+ }
736
737
let mut egui_texture = bitmap_data.egui_texture.borrow_mut();
738
let texture = egui_texture.get_or_insert_with(|| {
739
let image = egui::ColorImage::from_rgba_premultiplied(
0 commit comments