Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash on complex clips. #210

Merged
merged 1 commit into from Mar 1, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -291,8 +291,7 @@ impl<'a> BatchBuilder<'a> {

pub fn push_complex_clip(&mut self, clip: &[ComplexClipRegion]) {
// TODO(gw): Handle nested complex clips!
debug_assert!(clip.len() == 0 || clip.len() == 1);
if clip.len() == 1 {
if clip.len() > 0 {
self.complex_clip = Some(clip[0]);
} else {
self.complex_clip = None;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.