aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/egl
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:34:34 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:34:34 +0200
commitba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (patch)
tree231965fb1e033d15a5e331c0eab38022fadfd7ce /src/api/egl
parentca1eb8dc533301060e2b2768646b15d79c8be60c (diff)
downloadglutin-ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673.tar.gz
glutin-ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673.zip
Add CreationError::RobustnessNotSupported
Diffstat (limited to 'src/api/egl')
-rw-r--r--src/api/egl/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs
index d22c009..3d6d681 100644
--- a/src/api/egl/mod.rs
+++ b/src/api/egl/mod.rs
@@ -434,7 +434,7 @@ unsafe fn create_context(egl: &ffi::egl::Egl, display: ffi::egl::types::EGLDispl
context_attributes.push(ffi::egl::NO_RESET_NOTIFICATION as libc::c_int);
flags = flags | ffi::egl::CONTEXT_OPENGL_ROBUST_ACCESS as libc::c_int;
} else {
- return Err(CreationError::NotSupported);
+ return Err(CreationError::RobustnessNotSupported);
}
},
@@ -454,7 +454,7 @@ unsafe fn create_context(egl: &ffi::egl::Egl, display: ffi::egl::types::EGLDispl
context_attributes.push(ffi::egl::LOSE_CONTEXT_ON_RESET as libc::c_int);
flags = flags | ffi::egl::CONTEXT_OPENGL_ROBUST_ACCESS as libc::c_int;
} else {
- return Err(CreationError::NotSupported);
+ return Err(CreationError::RobustnessNotSupported);
}
},
@@ -488,7 +488,7 @@ unsafe fn create_context(egl: &ffi::egl::Egl, display: ffi::egl::types::EGLDispl
// robustness is not supported
match gl_robustness {
Robustness::RobustNoResetNotification | Robustness::RobustLoseContextOnReset => {
- return Err(CreationError::NotSupported);
+ return Err(CreationError::RobustnessNotSupported);
},
_ => ()
}