Handle errors from MakeCurrent and SwapBuffers

This commit is contained in:
Pierre Krieger 2015-06-16 10:15:31 +02:00
parent e48c853b9c
commit f6c26ec593
20 changed files with 123 additions and 62 deletions

View file

@ -2,6 +2,8 @@
pub use api::android::*;
use ContextError;
pub struct HeadlessContext(i32);
impl HeadlessContext {
@ -11,7 +13,7 @@ impl HeadlessContext {
}
/// See the docs in the crate root file.
pub unsafe fn make_current(&self) {
pub unsafe fn make_current(&self) -> Result<(), ContextError> {
unimplemented!()
}