From d40fc7588bce1793781a9768759d8ad8b7bbf4b6 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Wed, 31 Aug 2022 23:14:57 +0200 Subject: [PATCH] made it more stupider --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4b3fcf0..d007852 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ mod nes; mod renderer; -use std::ffi::{c_void, CStr}; +use std::ffi::{CStr}; use glfw::{Context}; use nes::nes::NES; @@ -23,8 +23,9 @@ fn main() { unsafe { res = context::init_opengl( - &mut glfw as *mut _ as *mut c_void, - |glfw, name| (&mut *(glfw as *mut glfw::Glfw)).get_proc_address_raw(CStr::from_ptr(name).to_str().unwrap())); + &mut glfw as *mut _ as *mut _, + |glfw, name| (&mut *(glfw as *mut glfw::Glfw)).get_proc_address_raw(CStr::from_ptr(name).to_str().unwrap()) + ); } if res != 0 {