Add CreationError::RobustnessNotSupported
This commit is contained in:
parent
ca1eb8dc53
commit
ba5adfa1e1
6 changed files with 10 additions and 7 deletions
|
|
@ -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.",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue