mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Add ANGLE support to default embedding.
This commit is contained in:
parent
af077f8cf7
commit
3bfbfa79d9
5 changed files with 49 additions and 11 deletions
|
@ -184,12 +184,13 @@ fn get_default_url() -> ServoUrl {
|
|||
cmdline_url.or(pref_url).or(blank_url).unwrap()
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_arch = "arm", target_arch = "aarch64")))]
|
||||
pub fn gl_version() -> glutin::GlRequest {
|
||||
glutin::GlRequest::Specific(glutin::Api::OpenGl, (3, 2))
|
||||
}
|
||||
|
||||
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
|
||||
pub fn gl_version() -> glutin::GlRequest {
|
||||
glutin::GlRequest::Specific(glutin::Api::OpenGlEs, (3, 0))
|
||||
if opts::get().angle {
|
||||
glutin::GlRequest::Specific(glutin::Api::OpenGlEs, (3, 0))
|
||||
} else {
|
||||
glutin::GlRequest::GlThenGles {
|
||||
opengl_version: (3, 2),
|
||||
opengles_version: (3, 0),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue