Add CreationError::RobustnessNotSupported

This commit is contained in:
Pierre Krieger 2015-07-20 19:34:34 +02:00
parent ca1eb8dc53
commit ba5adfa1e1
6 changed files with 10 additions and 7 deletions

View file

@ -109,6 +109,7 @@ pub trait GlContext {
pub enum CreationError {
OsError(String),
NotSupported,
RobustnessNotSupported,
}
impl CreationError {
@ -116,6 +117,8 @@ impl CreationError {
match *self {
CreationError::OsError(ref text) => &text,
CreationError::NotSupported => "Some of the requested attributes are not supported",
CreationError::RobustnessNotSupported => "Your requested robustness, but it is \
not supported.",
}
}
}