mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Allow creating EGL contexts on win32 with the AMD DLLs
This commit is contained in:
@@ -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>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user