public void dispose() { invalid = true; Callbacks.glfwFreeCallbacks(window); GLFW.glfwDestroyWindow(window); }