Author: spitzak
Date: 2009-09-16 18:09:48 -0700 (Wed, 16 Sep 2009)
New Revision: 6874
Log:
Commented out the OpenGL3 context selection on X11 because it is not working
on SUSE11 with Nvidia cards. Produces an unable-to-allocate error followed by
'bad context' errors.
Modified:
trunk/OpenGL/Fl_Gl_Choice.cxx
Modified: trunk/OpenGL/Fl_Gl_Choice.cxx
===================================================================
--- trunk/OpenGL/Fl_Gl_Choice.cxx 2009-09-16 07:06:41 UTC (rev 6873)
+++ trunk/OpenGL/Fl_Gl_Choice.cxx 2009-09-17 01:09:48 UTC (rev 6874)
@@ -207,6 +207,11 @@
// Define this to destroy all OpenGL contexts at exit to try to fix NVidia
crashes
#define DESTROY_ON_EXIT 0
+// Define this to select OpenGL3 contexts. This is disabled because it fails
+// on SUSE11 with Nvidia cards. I suspect the visual selected above is
+// incorrect but do not know how to fix that.
+#define OPENGL3 0
+
#if DESTROY_ON_EXIT
static struct Contexts {
GLContext context;
@@ -227,7 +232,7 @@
GLContext fltk::create_gl_context(XVisualInfo* vis) {
GLContext context;
-#if 1 // enable OpenGL3 support if possible
+#if OPENGL3 // enable OpenGL3 support if possible
typedef GLXFBConfig (*PFNGLXGETFBCONFIGFROMVISUALSGIXPROC)(
Display *dpy,
XVisualInfo *vis );
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit