add GLFW error callback

This commit is contained in:
Quinn
2025-04-14 14:45:11 +02:00
committed by Quinn
parent 7c4ba05eee
commit 9ade61e006
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
struct renderdat rdat; // contains the relevant data needed for rendering, contains rubbish data until init was
static inline int init(void) {
glfwSetErrorCallback(error_callback);
glfwInitHint(GLFW_JOYSTICK_HAT_BUTTONS, GLFW_FALSE); // disable joystick buttons
if (!glfwInit()) return 1; // initialize GLFW