Skip to content

Commit

Permalink
Use GL ES3 on ARM devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Sep 28, 2016
1 parent c7e1a57 commit 9bc1726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/glutin/window.rs
Expand Up @@ -317,7 +317,7 @@ impl Window {
}
}

#[cfg(not(target_os = "android"))]
#[cfg(not(any(target_arch = "arm", target_arch = "aarch64")))]
fn gl_version() -> GlRequest {
if opts::get().use_webrender {
return GlRequest::Specific(Api::OpenGl, (3, 2));
Expand All @@ -332,7 +332,7 @@ impl Window {
}
}

#[cfg(target_os = "android")]
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
fn gl_version() -> GlRequest {
GlRequest::Specific(Api::OpenGlEs, (3, 0))
}
Expand Down

0 comments on commit 9bc1726

Please sign in to comment.