diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-21 19:37:10 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-21 19:37:10 +0200 |
commit | 4824333453bfe6f91cdb6eefdd58ef112ef965ab (patch) | |
tree | e15a00f7e7e15d016f052ec2f3dd47a3ae40ba92 /src/api/x11/window.rs | |
parent | e606281862dfd016051e2ee66e67eddb71c6d0ac (diff) | |
parent | 01ecd24fe2dff3c81bfa57e76ebab9a05048e246 (diff) | |
download | glutin-4824333453bfe6f91cdb6eefdd58ef112ef965ab.tar.gz glutin-4824333453bfe6f91cdb6eefdd58ef112ef965ab.zip |
Merge pull request #459 from tomaka/win32-egl-2
Allow creating EGL contexts on win32 with the AMD DLLs
Diffstat (limited to 'src/api/x11/window.rs')
-rw-r--r-- | src/api/x11/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index f5f3f2f..4582c3e 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -523,14 +523,14 @@ impl Window { Context::Glx(try!(GlxContext::new(glx.clone(), builder, display.display, window, fb_config, visual_infos))) } else if let Some(ref egl) = display.egl { - Context::Egl(try!(EglContext::new(egl.clone(), builder, Some(display.display as *const _), window as *const _))) + Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _))) } else { return Err(CreationError::NotSupported); } }, GlRequest::Specific(Api::OpenGlEs, _) => { if let Some(ref egl) = display.egl { - Context::Egl(try!(EglContext::new(egl.clone(), builder, Some(display.display as *const _), window as *const _))) + Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _))) } else { return Err(CreationError::NotSupported); } |