fix: glfw error logging inconsistent with how the rest of our application logs errors.

This commit is contained in:
2025-09-15 13:55:32 +02:00
parent 11c8748262
commit e3c0afbb2f

View File

@@ -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) {