damn, rust borrow checker got hands

This commit is contained in:
LunarAkai 2025-08-03 20:41:13 +02:00
commit 1c75b7ac87
4 changed files with 16 additions and 19 deletions

View file

@ -9,8 +9,8 @@ pub mod backend;
pub use glium;
pub fn build_context(window: PWindow) -> Rc<Context>{
let gl_window = Rc::new(RefCell::new(window));
pub fn build_context(window: Rc<RefCell<PWindow>>) -> Rc<Context>{
let gl_window = window;
// now building the context
let context = unsafe {