Skip to content

Commit 8f7d0f1

Browse files
committed
Work around a crash on SteamOS
1 parent eed7393 commit 8f7d0f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎webrender/src/lib.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,13 @@ impl<A: Assets + 'static> WebRenderer<A> {
194194
let size = DeviceUintSize::new(width, height);
195195
let dsize = LayoutSize::new(width as f32, height as f32);
196196

197-
if self.last_size != size {
197+
// BUG: Currently have to rebuild every frame to work around
198+
// a crash on SteamOS
199+
{
198200
self.last_size = size;
199201
// BUG: Webrender seems to clear fonts on re-size?
200202
self.fonts.borrow_mut().clear();
203+
self.force_build = true;
201204
}
202205

203206
if !self.skip_build || self.force_build {

0 commit comments

Comments
 (0)