1
0
Fork 0
This commit is contained in:
Alex Janka 2023-03-06 18:20:27 +11:00
parent a6e07b7ea7
commit 1c12e05108

View file

@ -348,7 +348,7 @@ impl Window {
#[cfg(feature = "opengl")]
fn create_gl_context(ns_window: Option<id>, ns_view: id, config: GlConfig) -> GlContext {
let mut handle = AppKitHandle::empty();
let mut handle = AppKitWindowHandle::empty();
handle.ns_window = ns_window.unwrap_or(ptr::null_mut()) as *mut c_void;
handle.ns_view = ns_view as *mut c_void;
let handle = RawWindowHandleWrapper { handle: RawWindowHandle::AppKit(handle) };