aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-28 19:54:17 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-28 19:54:17 +0200
commit743cc317d7ee6bf197311e7a7cfa8f72f83b58d1 (patch)
tree177556043ece48cddcdc967ebfbeb3843849ef92
parent991b15df873136d4e7e41590cf2ffc54619b14dd (diff)
downloadglutin-743cc317d7ee6bf197311e7a7cfa8f72f83b58d1.tar.gz
glutin-743cc317d7ee6bf197311e7a7cfa8f72f83b58d1.zip
Use EGL by default with X11
-rw-r--r--src/api/x11/window.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index 4e6e17e..fc8ed5c 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -334,10 +334,10 @@ impl Window {
let builder_clone = builder.clone();
let context = match builder.gl_version {
GlRequest::Latest | GlRequest::Specific(Api::OpenGl, _) | GlRequest::GlThenGles { .. } => {
- if let Some(ref glx) = display.glx {
- Prototype::Glx(try!(GlxContext::new(glx.clone(), &display.xlib, &builder_clone, display.display)))
- } else if let Some(ref egl) = display.egl {
+ if let Some(ref egl) = display.egl {
Prototype::Egl(try!(EglContext::new(egl.clone(), &builder_clone, Some(display.display as *const _))))
+ } else if let Some(ref glx) = display.glx {
+ Prototype::Glx(try!(GlxContext::new(glx.clone(), &display.xlib, &builder_clone, display.display)))
} else {
return Err(CreationError::NotSupported);
}