Removed as_slice_with_nul as CString now derefs to a CStr
This commit is contained in:
parent
0389c834e4
commit
1055eed078
5 changed files with 5 additions and 5 deletions
|
|
@ -313,7 +313,7 @@ impl Window {
|
|||
|
||||
pub fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
let addr = CString::from_slice(addr.as_bytes());
|
||||
let addr = addr.as_bytes_with_nul().as_ptr();
|
||||
let addr = addr.as_ptr();
|
||||
unsafe {
|
||||
ffi::egl::GetProcAddress(addr) as *const ()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue