Allow creating EGL contexts on win32 with the AMD DLLs

This commit is contained in:
Pierre Krieger 2015-05-21 18:59:30 +02:00
parent e606281862
commit 01ecd24fe2
7 changed files with 133 additions and 27 deletions

View file

@ -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>
{