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

Stop using step_by, which is unstable. #438

Merged
merged 1 commit into from Oct 10, 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

@@ -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)]

//! A GPU based Webrender.
@@ -893,8 +893,8 @@ impl TextureCache {
let is_opaque = match (&insert_op, format) {
(&TextureInsertOp::Blit(ref bytes), ImageFormat::RGBA8) => {
let mut is_opaque = true;
for i in (0..bytes.len()).step_by(4) {
if bytes[i + 3] != 255 {
for i in 0..(bytes.len() / 4) {
if bytes[i * 4 + 3] != 255 {
is_opaque = false;
break;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.