From 01ecd24fe2dff3c81bfa57e76ebab9a05048e246 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 21 May 2015 18:59:30 +0200 Subject: Allow creating EGL contexts on win32 with the AMD DLLs --- src/api/egl/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/egl') 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, native_window: ffi::EGLNativeWindowType) -> Result { -- cgit v1.2.3