Skip to content

Commit 90aadc7

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/platform/egl/context.rs

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

124124
println!("{:?}", context::get_proc_address("glGetString"));
125-
let glGetString: extern "C" fn() =
125+
let glGetString: extern "C" fn(u32) -> *const u8 =
126126
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+
);
127132
let gl = Gl::from_loader_function(context::get_proc_address);
128133

129134
// Wrap up the EGL context.

0 commit comments

Comments
 (0)