summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Choice.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Gl_Choice.H')
-rw-r--r--src/Fl_Gl_Choice.H8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Fl_Gl_Choice.H b/src/Fl_Gl_Choice.H
index bdee1c6c8..5c5b339ef 100644
--- a/src/Fl_Gl_Choice.H
+++ b/src/Fl_Gl_Choice.H
@@ -3,7 +3,7 @@
//
// OpenGL definitions for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2016 by Bill Spitzak and others.
+// Copyright 1998-2018 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -50,9 +50,13 @@
#ifdef FL_CFG_GFX_XLIB
# include <GL/glx.h>
+# if ! defined(GLX_VERSION_1_3)
+# typedef void *GLXFBConfig;
+# endif
# define FL_GL_CHOICE_PLATFORM_SPECIFIC_MEMBERS \
XVisualInfo *vis; /* the visual to use */ \
- Colormap colormap; // a colormap for that visual
+ Colormap colormap; /* a colormap for that visual */ \
+ GLXFBConfig best_fb;
#endif // FL_CFG_GFX_XLIB*/