Skip to content

Commit 130385c

Browse files
adrian17torokati44
authored andcommitted
core: Set BitmapData as synced after texture creation
1 parent 4c818bc commit 130385c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/bitmap/bitmap_data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,8 @@ impl<'gc> BitmapData<'gc> {
626626
let bitmap_handle = renderer.register_bitmap(bitmap);
627627
if let Err(e) = &bitmap_handle {
628628
tracing::warn!("Failed to register raw bitmap for BitmapData: {:?}", e);
629+
} else {
630+
self.dirty_state = DirtyState::Clean;
629631
}
630632
self.bitmap_handle = bitmap_handle.ok();
631633
}

0 commit comments

Comments
 (0)