diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index f236a63cf..9e04f36f9 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -368,7 +368,7 @@ GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int lay 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);