Change ContextCreationFailed to GraphicsCreationFailed

This commit is contained in:
Richard 2022-04-26 19:28:04 -03:00
parent 005e516b5e
commit 18ecec2bbd
3 changed files with 12 additions and 12 deletions

View file

@ -94,16 +94,16 @@ where
Error::WindowCreationFailed(error)
}
CreationError::OpenGlVersionNotSupported => {
Error::ContextCreationFailed(
Error::GraphicsCreationFailed(
ContextError::VersionNotSupported,
)
}
CreationError::NoAvailablePixelFormat => {
Error::ContextCreationFailed(
Error::GraphicsCreationFailed(
ContextError::NoAvailablePixelFormat,
)
}
error => Error::ContextCreationFailed(
error => Error::GraphicsCreationFailed(
ContextError::BackendError(error.to_string()),
),
}