From c9b1b91b8cb7e43c0908c04afaefb8e49e0f2b35 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 27 Jul 2015 09:52:51 +0200 Subject: Load the EGL library in platform/windows --- src/api/win32/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/api/win32/mod.rs') diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs index d21f16d..9b03f64 100644 --- a/src/api/win32/mod.rs +++ b/src/api/win32/mod.rs @@ -29,6 +29,7 @@ use kernel32; use api::wgl; use api::wgl::Context as WglContext; use api::egl::Context as EglContext; +use api::egl::ffi::egl::Egl; use self::init::RawContext; @@ -84,7 +85,7 @@ impl WindowProxy { impl Window { /// See the docs in the crate root file. - pub fn new(builder: BuilderAttribs) -> Result { + pub fn new(builder: BuilderAttribs, egl: Option<&Egl>) -> Result { let (builder, sharing) = builder.extract_non_static(); let sharing = sharing.map(|w| match w.context { @@ -92,7 +93,7 @@ impl Window { Context::Egl(_) => unimplemented!(), // FIXME: }); - init::new_window(builder, sharing) + init::new_window(builder, sharing, egl) } /// See the docs in the crate root file. -- cgit v1.2.3