aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-20 09:29:22 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 12:03:55 +0200
commitc244f8c033f100a6e0f3e0b2b408f6ddc1006d47 (patch)
tree786cb96254b0fe69646700fc4845218c5703ffac /src/api/x11/window.rs
parentf51ace4c7885fa25c146c24181c4d87f5632de3e (diff)
downloadglutin-c244f8c033f100a6e0f3e0b2b408f6ddc1006d47.tar.gz
glutin-c244f8c033f100a6e0f3e0b2b408f6ddc1006d47.zip
Extract GlAttributes from BuilderAttribs
Diffstat (limited to 'src/api/x11/window.rs')
-rw-r--r--src/api/x11/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index 5bfbda9..8e2bdb5 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -349,7 +349,7 @@ impl Window {
Egl(::api::egl::ContextPrototype<'a>),
}
let builder_clone = builder.clone();
- let context = match builder.gl_version {
+ let context = match builder.opengl.version {
GlRequest::Latest | GlRequest::Specific(Api::OpenGl, _) | GlRequest::GlThenGles { .. } => {
// GLX should be preferred over EGL, otherwise crashes may occur
// on X11 – issue #314