mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Handle errors from MakeCurrent and SwapBuffers
This commit is contained in:
@@ -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!()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user