Allow creating EGL contexts on win32 with the AMD DLLs
This commit is contained in:
parent
e606281862
commit
01ecd24fe2
7 changed files with 133 additions and 27 deletions
|
|
@ -523,14 +523,14 @@ impl Window {
|
|||
Context::Glx(try!(GlxContext::new(glx.clone(), builder, display.display, window,
|
||||
fb_config, visual_infos)))
|
||||
} else if let Some(ref egl) = display.egl {
|
||||
Context::Egl(try!(EglContext::new(egl.clone(), builder, Some(display.display as *const _), window as *const _)))
|
||||
Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _)))
|
||||
} else {
|
||||
return Err(CreationError::NotSupported);
|
||||
}
|
||||
},
|
||||
GlRequest::Specific(Api::OpenGlEs, _) => {
|
||||
if let Some(ref egl) = display.egl {
|
||||
Context::Egl(try!(EglContext::new(egl.clone(), builder, Some(display.display as *const _), window as *const _)))
|
||||
Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _)))
|
||||
} else {
|
||||
return Err(CreationError::NotSupported);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue