Add CreationError::OpenGlVersionNotSupported

This commit is contained in:
Pierre Krieger 2015-07-20 19:38:57 +02:00
parent ba5adfa1e1
commit 43dabf131a
6 changed files with 19 additions and 13 deletions

View file

@ -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.",
}
}
}