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/egl | |
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/egl')
-rw-r--r-- | src/api/egl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs index a97ef62..3335de0 100644 --- a/src/api/egl/mod.rs +++ b/src/api/egl/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "android"))] +#![cfg(any(target_os = "windows", target_os = "linux", target_os = "android"))] #![allow(unused_variables)] use BuilderAttribs; @@ -24,7 +24,7 @@ pub struct Context { } impl Context { - pub fn new(egl: ffi::egl::Egl, builder: BuilderAttribs, + pub fn new(egl: ffi::egl::Egl, builder: &BuilderAttribs, native_display: Option<ffi::EGLNativeDisplayType>, native_window: ffi::EGLNativeWindowType) -> Result<Context, CreationError> { |