aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.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/lib.rs
parentba5adfa1e13e8be0dec888b3fbcb54fd30a9a673 (diff)
downloadglutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.tar.gz
glutin-43dabf131aa9f76610e1cfd0685e3b36de8c2ebd.zip
Add CreationError::OpenGlVersionNotSupported
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d5f563a..b543702 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -110,6 +110,7 @@ pub enum CreationError {
OsError(String),
NotSupported,
RobustnessNotSupported,
+ OpenGlVersionNotSupported,
}
impl CreationError {
@@ -119,6 +120,8 @@ impl CreationError {
CreationError::NotSupported => "Some of the requested attributes are not supported",
CreationError::RobustnessNotSupported => "Your requested robustness, but it is \
not supported.",
+ CreationError::OpenGlVersionNotSupported => "The requested OpenGL version is not \
+ supported.",
}
}
}