aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/osmesa
diff options
context:
space:
mode:
authorDaggerbot <daggerbot@gmail.com>2015-11-04 08:21:42 -0800
committerDaggerbot <daggerbot@gmail.com>2015-11-04 08:21:42 -0800
commit7e4f795a53aee93add100f74f4b84bf24b04848a (patch)
tree8f0d242869193064b2737776502e25f1549a9804 /src/api/osmesa
parent188b8f5c081011e6a2dfe7b0ff9d72e7a0bb2566 (diff)
downloadglutin-7e4f795a53aee93add100f74f4b84bf24b04848a.tar.gz
glutin-7e4f795a53aee93add100f74f4b84bf24b04848a.zip
Change some uses of c_void to avoid libc version conflicts.
Diffstat (limited to 'src/api/osmesa')
-rw-r--r--src/api/osmesa/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/osmesa/mod.rs b/src/api/osmesa/mod.rs
index c41c997..065ffc6 100644
--- a/src/api/osmesa/mod.rs
+++ b/src/api/osmesa/mod.rs
@@ -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