Skip to content

Commit c5dee49

Browse files
committed
more
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 90aadc7 commit c5dee49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform/egl/context.rs

+4
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,13 @@ impl Device {
122122
})?;
123123

124124
println!("{:?}", context::get_proc_address("glGetString"));
125+
let glGetError: extern "C" fn() -> u32 =
126+
unsafe { std::mem::transmute(context::get_proc_address("glGetError")) };
125127
let glGetString: extern "C" fn(u32) -> *const u8 =
126128
unsafe { std::mem::transmute(context::get_proc_address("glGetString")) };
129+
println!("E{:?}", glGetError());
127130
println!("{:?}", glGetString(glow::VERSION));
131+
println!("E{:?}", glGetError());
128132
println!(
129133
"{:?}",
130134
std::ffi::CStr::from_ptr(glGetString(glow::VERSION) as _)

0 commit comments

Comments
 (0)