aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-06-26 11:34:14 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-06-26 11:34:14 +0200
commit86300dfb793abeb53db0780fbf99bf4f007c88b8 (patch)
tree3659b09a7d7992a1e57ccaa9c20ab79d2a9a6222 /src/lib.rs
parent4349de5541bb3049b7f7a7b46616daa578b7665c (diff)
parentbff79c02cebd6ddba88918053d4fcd39bbd09b11 (diff)
downloadglutin-86300dfb793abeb53db0780fbf99bf4f007c88b8.tar.gz
glutin-86300dfb793abeb53db0780fbf99bf4f007c88b8.zip
Merge pull request #500 from tomaka/no-error
Add support for the EGL_KHR_create_context_no_error extension
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 64b0ace..3dcf0f9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -205,6 +205,13 @@ pub enum Robustness {
/// shaders.
NotRobust,
+ /// The driver doesn't check anything. This option is very dangerous. Please know what you're
+ /// doing before using it. See the `GL_KHR_no_error` extension.
+ ///
+ /// Since this option is purely an optimisation, no error will be returned if the backend
+ /// doesn't support it. Instead it will automatically fall back to `NotRobust`.
+ NoError,
+
/// Everything is checked to avoid any crash. The driver will attempt to avoid any problem,
/// but if a problem occurs the behavior is implementation-defined. You are just guaranteed not
/// to get a crash.