diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-20 19:38:57 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-20 19:38:57 +0200 |
commit | 43dabf131aa9f76610e1cfd0685e3b36de8c2ebd (patch) | |
tree | 602da832e457e13f384a87bef1705df0eea60434 /src/api/glx | |
parent | ba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (diff) | |
download | glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.tar.gz glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.zip |
Add CreationError::OpenGlVersionNotSupported
Diffstat (limited to 'src/api/glx')
-rw-r--r-- | src/api/glx/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs index 753bd74..65819f8 100644 --- a/src/api/glx/mod.rs +++ b/src/api/glx/mod.rs @@ -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"))); } |