From a3c57d50d359102de933148380f733cae8b5d3bf Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Thu, 5 Sep 2024 20:47:07 -0700 Subject: [PATCH] Fixing book example generation --- src/example.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/example.rs b/src/example.rs index b4b91ea14..5995c00fb 100644 --- a/src/example.rs +++ b/src/example.rs @@ -135,6 +135,7 @@ impl Example { where Test: FnOnce(&mut AnimationRecorder<'_, Rgba8>), { + self.recorder.refresh().expect("error refreshing recorder"); let mut animation = self.recorder.record_animated_png(60); let capture = std::env::var("CAPTURE").is_ok(); let errored = std::panic::catch_unwind(AssertUnwindSafe(|| test(&mut animation))).is_err();