damn, rust borrow checker got hands
This commit is contained in:
parent
5a88e1c4c2
commit
1c75b7ac87
4 changed files with 16 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue