core: Invalidate cacheAsBitmap when graphics change

This commit is contained in:
Nathan Adams 2023-06-18 20:23:05 +02:00
parent c39217e139
commit 8a3ccdd080
6 changed files with 8 additions and 0 deletions

View File

@ -173,6 +173,7 @@ impl<'gc> TDisplayObject<'gc> for Graphic<'gc> {
} else {
tracing::warn!("PlaceObject: expected Graphic at character ID {}", id);
}
self.invalidate_cached_bitmap(context.gc_context);
}
fn run_frame_avm1(&self, _context: &mut UpdateContext) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,7 @@
num_frames = 3
[image_comparison]
tolerance = 0
[player_options]
with_renderer = { optional = false, sample_count = 1 }