Skip to content

Commit

Permalink
Fix the max_texture_size checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Mar 29, 2017
1 parent 6e9e93e commit cb510c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webrender/src/texture_cache.rs
Expand Up @@ -611,8 +611,8 @@ impl TextureCache {
};

// TODO(gw): Handle this sensibly (support failing to render items that can't fit?)
assert!(requested_size.width < self.max_texture_size);
assert!(requested_size.height < self.max_texture_size);
assert!(requested_size.width <= self.max_texture_size);
assert!(requested_size.height <= self.max_texture_size);

let mut page_id = None; //using ID here to please the borrow checker
for (i, page) in page_list.iter_mut().enumerate() {
Expand Down

0 comments on commit cb510c5

Please sign in to comment.