Fix the libc breakage
This commit is contained in:
parent
188b8f5c08
commit
2fcbdcc2fc
3 changed files with 4 additions and 4 deletions
|
|
@ -89,7 +89,7 @@ impl GlContext for OsMesaContext {
|
|||
#[inline]
|
||||
unsafe fn make_current(&self) -> Result<(), ContextError> {
|
||||
let ret = osmesa_sys::OSMesaMakeCurrent(self.context, self.buffer.as_ptr()
|
||||
as *mut libc::c_void, 0x1401, self.width
|
||||
as *mut _, 0x1401, self.width
|
||||
as libc::c_int, self.height as libc::c_int);
|
||||
|
||||
// an error can only happen in case of invalid parameter, which would indicate a bug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue