From c244f8c033f100a6e0f3e0b2b408f6ddc1006d47 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 20 Sep 2015 09:29:22 +0200 Subject: Extract GlAttributes from BuilderAttribs --- src/api/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/x11/window.rs') 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 -- cgit v1.2.3