aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorPatrick Horlebein <patrick@ilovepatrick.de>2014-12-29 13:46:44 +0100
committerPatrick Horlebein <patrick@ilovepatrick.de>2014-12-29 13:46:44 +0100
commit09cf026a9de2e1aef43307d64d41a0251159c113 (patch)
tree9ff3a9877ccdd0d1fc0064d0639b6637622c9da1 /src/osx
parent1b0064f9f780ab8a53e7b5a7a33f2fd8c53aab08 (diff)
downloadglutin-09cf026a9de2e1aef43307d64d41a0251159c113.tar.gz
glutin-09cf026a9de2e1aef43307d64d41a0251159c113.zip
Minor match clause cleanup
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index e2b9bc2..ce02779 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -272,9 +272,7 @@ impl Window {
fn create_context(view: id, vsync: bool, gl_version: Option<(uint, uint)>) -> Option<id> {
let profile = {
match gl_version {
- None => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint,
- Some((0...2, _)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint,
- Some((3, 0)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint,
+ None | Some((0...2, _)) | Some((3, 0)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint,
Some((3, 1...2)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersion3_2Core as uint,
Some((_, _)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersion4_1Core as uint,
}