diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-19 13:12:59 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-19 13:12:59 +0200 |
commit | 355a19e630de61397bf70b69b7ab2356318be2b8 (patch) | |
tree | 71774709c0407375850c54fe59feb542e05fdb51 /glfw/src/lib.rs | |
parent | 3884f9bdd775afd3a40503286eb5d06ef72eeb1a (diff) |
fix(glfw): check major version of GLFW shared library
Diffstat (limited to 'glfw/src/lib.rs')
-rw-r--r-- | glfw/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glfw/src/lib.rs b/glfw/src/lib.rs index 7d2f25c..f858766 100644 --- a/glfw/src/lib.rs +++ b/glfw/src/lib.rs @@ -22,6 +22,9 @@ pub enum Error #[error("An internal nul byte was found in the window title")] InternalNulByteInWindowTitle, + #[error("This version of GLFW is unsupported")] + UnsupportedVersion, + /// GLFW error. #[error("GLFW error {0} occured. {1}")] GlfwError(i32, String), |