Permalink
Browse files

Work around a crash on SteamOS

  • Loading branch information...
Thinkofname committed May 3, 2018
1 parent eed7393 commit 8f7d0f11fd25a0e9c67844aada9367807444fe18
Showing with 4 additions and 1 deletion.
  1. +4 −1 webrender/src/lib.rs
@@ -194,10 +194,13 @@ impl<A: Assets + 'static> WebRenderer<A> {
let size = DeviceUintSize::new(width, height);
let dsize = LayoutSize::new(width as f32, height as f32);
if self.last_size != size {
// BUG: Currently have to rebuild every frame to work around
// a crash on SteamOS
{
self.last_size = size;
// BUG: Webrender seems to clear fonts on re-size?
self.fonts.borrow_mut().clear();
self.force_build = true;
}
if !self.skip_build || self.force_build {

0 comments on commit 8f7d0f1

Please sign in to comment.