mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Add with_robustness and handle robustness on all implementations
This commit is contained in:
@@ -8,6 +8,7 @@ use ContextError;
|
||||
use CreationError;
|
||||
use GlContext;
|
||||
use PixelFormat;
|
||||
use Robustness;
|
||||
use libc;
|
||||
use std::{mem, ptr};
|
||||
use std::ffi::CString;
|
||||
@@ -38,6 +39,13 @@ impl OsMesaContext {
|
||||
|
||||
let dimensions = builder.dimensions.unwrap();
|
||||
|
||||
match builder.gl_robustness {
|
||||
Robustness::RobustNoResetNotification | Robustness::RobustLoseContextOnReset => {
|
||||
return Err(CreationError::NotSupported.into());
|
||||
},
|
||||
_ => ()
|
||||
}
|
||||
|
||||
Ok(OsMesaContext {
|
||||
width: dimensions.0,
|
||||
height: dimensions.1,
|
||||
|
||||
Reference in New Issue
Block a user