aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11/mod.rs')
-rw-r--r--src/x11/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 4c4d400..cc70a01 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -232,8 +232,8 @@ impl Window {
}
}
- pub fn make_current(&self) {
- let res = unsafe { ffi::glXMakeCurrent(self.display, self.window, self.context) };
+ pub unsafe fn make_current(&self) {
+ let res = ffi::glXMakeCurrent(self.display, self.window, self.context);
if res == 0 {
fail!("glXMakeCurrent failed");
}