aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/cocoa/mod.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:38:57 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-20 19:38:57 +0200
commit43dabf131aa9f76610e1cfd0685e3b36de8c2ebd (patch)
tree602da832e457e13f384a87bef1705df0eea60434 /src/api/cocoa/mod.rs
parentba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (diff)
downloadglutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.tar.gz
glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.zip
Add CreationError::OpenGlVersionNotSupported
Diffstat (limited to 'src/api/cocoa/mod.rs')
-rw-r--r--src/api/cocoa/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs
index 680c621..6fc91b4 100644
--- a/src/api/cocoa/mod.rs
+++ b/src/api/cocoa/mod.rs
@@ -512,11 +512,11 @@ impl Window {
},
(_, Some((1 ... 2, _)), Some(GlProfile::Core)) |
(_, Some((3 ... 4, _)), Some(GlProfile::Compatibility)) =>
- return Err(CreationError::NotSupported),
+ return Err(CreationError::OpenGlVersionNotSupported),
(_, Some((1 ... 2, _)), _) => NSOpenGLProfileVersionLegacy as u32,
(_, Some((3, 0 ... 2)), _) => NSOpenGLProfileVersion3_2Core as u32,
(_, Some((3 ... 4, _)), _) => NSOpenGLProfileVersion4_1Core as u32,
- _ => return Err(CreationError::NotSupported),
+ _ => return Err(CreationError::OpenGlVersionNotSupported),
};
// NOTE: OS X no longer has the concept of setting individual