aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/osmesa
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-06-22 17:58:32 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-06-22 19:42:03 +0200
commitdbaca24cde140052fb08fbe00924da4a528ea7cf (patch)
treebc86121c21cbe715826f67a749f3e5a1abb50c5a /src/api/osmesa
parent1aedc828c55e94d6f301a100f958ffa1106a0a25 (diff)
downloadglutin-dbaca24cde140052fb08fbe00924da4a528ea7cf.tar.gz
glutin-dbaca24cde140052fb08fbe00924da4a528ea7cf.zip
Add with_robustness and handle robustness on all implementations
Diffstat (limited to 'src/api/osmesa')
-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,