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

Fix loop count from 7b9c8e638 #214

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

Fix loop count from 7b9c8e6

After updating WebRender, [this box shadow][1] rendered incorrectly.
`git bisect` pointed to 7b9c8e6, where I noticed that the replacement
code wasn't quite equivalent -- `self.vertices` vs `vertices`

[1]: https://github.com/kevinmehall/webrender-
experiments/blob/master/src/main.rs#L127
  • Loading branch information
kevinmehall committed Mar 1, 2016
commit 74ea53380877de5f8767b530ae2d8426d6b7f504
@@ -434,7 +434,7 @@ impl RasterBatch {
dest_rect.size.height as f32)));
let mut i = 0;
let index_offset = self.vertices.len();
while i < index_offset {
while i < vertices.len() {
let index_base = (index_offset + i) as u16;
self.indices.push(index_base + 0);
self.indices.push(index_base + 1);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.