From 82580503ce60d9d74b43efa12f7b86d24222a31f Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Tue, 25 Jul 2023 20:37:52 +0200 Subject: [PATCH] Call hooks_restore() from destructor --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index f9f288d..92e5756 100644 --- a/src/main.c +++ b/src/main.c @@ -46,6 +46,7 @@ void unload() { /* TODO: Remove our cvars */ globals_restore(); + hooks_restore(); GL_UNHOOK(glColor4f); /* Manually restore OpenGL hooks here */ }