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