aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/osmesa/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-06-23 16:46:52 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-06-23 16:46:52 +0200
commit40b84577c3894190aecebf096349d916cd1d000e (patch)
treee2303fa1ff9990706e6be83f530ad9ab746606aa /src/api/osmesa/mod.rs
parent717ea3d5ba655a3ec18f834f5e27152e81c7a8b5 (diff)
parentdbaca24cde140052fb08fbe00924da4a528ea7cf (diff)
downloadglutin-40b84577c3894190aecebf096349d916cd1d000e.tar.gz
glutin-40b84577c3894190aecebf096349d916cd1d000e.zip
Merge pull request #497 from tomaka/robustness
Add with_robustness and handle robustness on all implementations
Diffstat (limited to 'src/api/osmesa/mod.rs')
-rw-r--r--src/api/osmesa/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/osmesa/mod.rs b/src/api/osmesa/mod.rs
index daaba52..db0a1e7 100644
--- a/src/api/osmesa/mod.rs
+++ b/src/api/osmesa/mod.rs
@@ -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,