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

Remove direct dependence on nightly features #213

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

Always

Just for now

Prev

Remove dependence on step_by

  • Loading branch information
Manishearth committed Mar 1, 2016
commit 7b9c8e638005ed696934ffe52e74204b4c5b2268
@@ -432,16 +432,17 @@ impl RasterBatch {
origin.y as f32),
Size2D::new(dest_rect.size.width as f32,
dest_rect.size.height as f32)));

for i in (0..vertices.len()).step_by(4) {
let index_offset = self.vertices.len();
let mut i = 0;
let index_offset = self.vertices.len();
while i < index_offset {
let index_base = (index_offset + i) as u16;
self.indices.push(index_base + 0);
self.indices.push(index_base + 1);
self.indices.push(index_base + 2);
self.indices.push(index_base + 2);
self.indices.push(index_base + 3);
self.indices.push(index_base + 1);
i += 4;
}

self.vertices.extend_from_slice(&vertices);
@@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#![feature(step_by)]
//#![feature(mpsc_select)]

#[macro_use]
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.