We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5bdbe0 commit 90aadc7Copy full SHA for 90aadc7
src/platform/egl/context.rs
@@ -122,8 +122,13 @@ impl Device {
122
})?;
123
124
println!("{:?}", context::get_proc_address("glGetString"));
125
- let glGetString: extern "C" fn() =
+ let glGetString: extern "C" fn(u32) -> *const u8 =
126
unsafe { std::mem::transmute(context::get_proc_address("glGetString")) };
127
+ println!("{:?}", glGetString(glow::VERSION));
128
+ println!(
129
+ "{:?}",
130
+ std::ffi::CStr::from_ptr(glGetString(glow::VERSION) as _)
131
+ );
132
let gl = Gl::from_loader_function(context::get_proc_address);
133
134
// Wrap up the EGL context.
0 commit comments