glutin 0.22.0-alpha1

Cross-platform OpenGL context provider.
#![cfg(target_os = "macos")]

use crate::platform::ContextTraitExt;
use crate::{Context, ContextCurrentState};

pub use winit::platform::macos::*;

use std::os::raw;

impl<T: ContextCurrentState> ContextTraitExt for Context<T> {
    type Handle = *mut raw::c_void;

    #[inline]
    unsafe fn raw_handle(&self) -> Self::Handle {
        self.context.raw_handle()
    }

    #[inline]
    unsafe fn get_egl_display(&self) -> Option<*const raw::c_void> {
        None
    }
}