summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Choice.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx
index a4531c20a..476bb08d8 100644
--- a/src/Fl_Gl_Choice.cxx
+++ b/src/Fl_Gl_Choice.cxx
@@ -264,7 +264,7 @@ static void del_context(GLContext ctx) {
GLContext fl_create_gl_context(XVisualInfo* vis) {
GLContext shared_ctx = 0;
- if (context_list && nContext) shared_context = context_list[0];
+ if (context_list && nContext) shared_ctx = context_list[0];
GLContext context = glXCreateContext(fl_display, vis, shared_ctx, 1);
if (context)
add_context(context);