aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-04 22:16:15 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-04 22:16:15 +0100
commit615f7c0cd57e26d3b56ce13438c7524a799080c8 (patch)
treee777fc34ccf696d08f54b1d8233a938052f529a1
parent2303e53175c8d471aa7e796fef8a652b6a467e20 (diff)
Set context to NULL before destroyingHEADmaster
-rw-r--r--src/window/window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window/window.c b/src/window/window.c
index 05d643d..17066a0 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -255,6 +255,7 @@ void x11_context_deinit(x11_context *self) {
}
if(self->glx_context) {
+ context->gl.glXMakeContextCurrent(context->connection, None, None, NULL);
context->gl.glXDestroyContext(context->connection, self->glx_context);
self->glx_context = NULL;
}