From 615f7c0cd57e26d3b56ce13438c7524a799080c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 4 Mar 2024 22:16:15 +0100 Subject: Set context to NULL before destroying --- src/window/window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window') 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; } -- cgit v1.2.3