From 130385c564777eb8eab326ec083d76a20845f743 Mon Sep 17 00:00:00 2001 From: Adrian Wielgosik Date: Thu, 28 Nov 2024 21:13:58 +0100 Subject: [PATCH] core: Set BitmapData as synced after texture creation --- core/src/bitmap/bitmap_data.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/bitmap/bitmap_data.rs b/core/src/bitmap/bitmap_data.rs index ea2b118c50a8..ff4afd22715e 100644 --- a/core/src/bitmap/bitmap_data.rs +++ b/core/src/bitmap/bitmap_data.rs @@ -626,6 +626,8 @@ impl<'gc> BitmapData<'gc> { let bitmap_handle = renderer.register_bitmap(bitmap); if let Err(e) = &bitmap_handle { tracing::warn!("Failed to register raw bitmap for BitmapData: {:?}", e); + } else { + self.dirty_state = DirtyState::Clean; } self.bitmap_handle = bitmap_handle.ok(); }