From 1c12e0510884852bbeaf4f284c1196e271c4db70 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 6 Mar 2023 18:20:27 +1100 Subject: [PATCH] opengl --- src/macos/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macos/window.rs b/src/macos/window.rs index 3f85fb6..c425d3e 100644 --- a/src/macos/window.rs +++ b/src/macos/window.rs @@ -348,7 +348,7 @@ impl Window { #[cfg(feature = "opengl")] fn create_gl_context(ns_window: Option, 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) };