RingBuf -> VecDeque for other platforms, as_slice_with_nul -> as_bytes_with_nul
This commit is contained in:
parent
9bb41bf277
commit
0389c834e4
7 changed files with 18 additions and 18 deletions
|
|
@ -171,7 +171,7 @@ fn init(title: Vec<u16>, builder: BuilderAttribs<'static>, builder_sharelists: O
|
|||
use libc;
|
||||
|
||||
let addr = CString::from_slice(addr.as_bytes());
|
||||
let addr = addr.as_slice_with_nul().as_ptr();
|
||||
let addr = addr.as_bytes_with_nul().as_ptr();
|
||||
|
||||
unsafe {
|
||||
gl::wgl::GetProcAddress(addr) as *const libc::c_void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue