aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/glx
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-21 17:49:52 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-21 17:49:52 +0200
commit04a651320ba00571a0b2af9ae25c6d6c696c2803 (patch)
tree7ba2cf8fbc9ebd9acb1f7854ee4bfef7a5028a44 /src/api/glx
parentca1eb8dc533301060e2b2768646b15d79c8be60c (diff)
parent7fe828bed3c1e01c0868d83eada0f2f36209c989 (diff)
downloadglutin-04a651320ba00571a0b2af9ae25c6d6c696c2803.tar.gz
glutin-04a651320ba00571a0b2af9ae25c6d6c696c2803.zip
Merge pull request #532 from tomaka/precise-errors
Precise errors
Diffstat (limited to 'src/api/glx')
-rw-r--r--src/api/glx/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs
index e0adde7..65819f8 100644
--- a/src/api/glx/mod.rs
+++ b/src/api/glx/mod.rs
@@ -301,7 +301,7 @@ fn create_context(glx: &ffi::glx::Glx, extra_functions: &ffi::glx_extra::Glx, ex
} else {
match robustness {
Robustness::RobustNoResetNotification | Robustness::RobustLoseContextOnReset => {
- return Err(CreationError::NotSupported);
+ return Err(CreationError::RobustnessNotSupported);
},
_ => ()
}
@@ -328,6 +328,7 @@ fn create_context(glx: &ffi::glx::Glx, extra_functions: &ffi::glx_extra::Glx, ex
};
if context.is_null() {
+ // TODO: check for errors and return `OpenGlVersionNotSupported`
return Err(CreationError::OsError(format!("GL context creation failed")));
}