From e3c0afbb2fe9426981b7a4ac4d10f2a7161e2d73 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 15 Sep 2025 13:55:32 +0200 Subject: [PATCH] fix: glfw error logging inconsistent with how the rest of our application logs errors. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 7f8a46e..9d7b78f 100644 --- a/src/main.c +++ b/src/main.c @@ -16,9 +16,9 @@ #define WIN_DEFAULT_WIDTH 640 #define WIN_DEFAULT_HEIGHT 480 -// callback for GLFW errors +/* reroutes GLFW errors to our logging system. */ static void error_callback(int err, const char *const msg) { - fprintf(stderr, "\033[91mE: glfw returned (%i); \"%s\"\033[0m\n", err, msg); + error("glfw returned (%i); \"%s\"", err, msg); } static inline int init(void) {