Add CreationError::OpenGlVersionNotSupported
This commit is contained in:
parent
ba5adfa1e1
commit
43dabf131a
6 changed files with 19 additions and 13 deletions
|
|
@ -328,6 +328,7 @@ fn create_context(glx: &ffi::glx::Glx, extra_functions: &ffi::glx_extra::Glx, ex
|
|||
};
|
||||
|
||||
if context.is_null() {
|
||||
// TODO: check for errors and return `OpenGlVersionNotSupported`
|
||||
return Err(CreationError::OsError(format!("GL context creation failed")));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue