fail! -> panic!
This commit is contained in:
parent
367d488ccd
commit
7de3d55e71
3 changed files with 4 additions and 4 deletions
|
|
@ -510,7 +510,7 @@ impl Window {
|
|||
pub unsafe fn make_current(&self) {
|
||||
let res = ffi::glx::MakeCurrent(self.display, self.window, self.context);
|
||||
if res == 0 {
|
||||
fail!("glx::MakeCurrent failed");
|
||||
panic!("glx::MakeCurrent failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue