aboutsummaryrefslogtreecommitdiff
path: root/src/mgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgl.c')
-rw-r--r--src/mgl.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mgl.c b/src/mgl.c
index 549121f..6407d9e 100644
--- a/src/mgl.c
+++ b/src/mgl.c
@@ -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;