diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-28 17:10:41 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-28 17:32:34 +0200 |
commit | 14e3617736c63bd22b0785ad418acef825db221f (patch) | |
tree | dc18c593a1e74c4218657136772e4409094414af /src/mgl.c | |
parent | 1e3df56a5c91bce2ef7b03e31156721e2f76a063 (diff) |
Use a separate glx context for every window
Fix vertex buffer causing crash on render if update is called with an
empty list.
Diffstat (limited to 'src/mgl.c')
-rw-r--r-- | src/mgl.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -39,21 +39,10 @@ static int glx_context_init() { return -1; } - context.glx_context = context.gl.glXCreateContext(context.connection, context.visual_info, NULL, 1); - if(!context.glx_context) { - fprintf(stderr, "glXCreateContext failed\n"); - return -1; - } - return 0; } static void glx_context_deinit() { - if(context.glx_context) { - context.gl.glXDestroyContext(context.connection, context.glx_context); - context.glx_context = NULL; - } - if(context.visual_info) { XFree(context.visual_info); context.visual_info = NULL; |