From 355a19e630de61397bf70b69b7ab2356318be2b8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 19 May 2024 13:12:59 +0200 Subject: fix(glfw): check major version of GLFW shared library --- glfw/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'glfw/src/lib.rs') 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), -- cgit v1.2.3-18-g5258