diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-06-23 16:46:52 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-06-23 16:46:52 +0200 |
commit | 40b84577c3894190aecebf096349d916cd1d000e (patch) | |
tree | e2303fa1ff9990706e6be83f530ad9ab746606aa /src/headless.rs | |
parent | 717ea3d5ba655a3ec18f834f5e27152e81c7a8b5 (diff) | |
parent | dbaca24cde140052fb08fbe00924da4a528ea7cf (diff) | |
download | glutin-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/headless.rs')
-rw-r--r-- | src/headless.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/headless.rs b/src/headless.rs index 8ee81d8..69f9aab 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -5,6 +5,7 @@ use CreationError; use GlRequest; use GlContext; use PixelFormat; +use Robustness; use gl_common; use libc; @@ -43,6 +44,12 @@ impl HeadlessRendererBuilder { self } + /// Sets the robustness of the OpenGL context. See the docs of `Robustness`. + pub fn with_gl_robustness(mut self, robustness: Robustness) -> HeadlessRendererBuilder { + self.attribs.gl_robustness = robustness; + self + } + /// Builds the headless context. /// /// Error should be very rare and only occur in case of permission denied, incompatible system, |