Please try attach patch and tell me what happens.
Index: gcu/glview.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/gcu/Attic/glview.cc,v
retrieving revision 1.6.2.2
diff -p -u -5 -r1.6.2.2 glview.cc
--- gcu/glview.cc 10 Dec 2007 21:28:30 -0000 1.6.2.2
+++ gcu/glview.cc 17 Jan 2008 13:07:23 -0000
@@ -407,11 +407,17 @@ GdkPixbuf *GLView::BuildPixbuf (unsigned
} else {
w = x * (1 - tan (m_Angle / 360 * M_PI));
h = w / aspect;
}
GdkPixbuf *pixbuf = NULL;
- if (gdk_gl_drawable_gl_begin (drawable, context)) {
+ gdk_error_trap_push ();
+ bool result = gdk_gl_drawable_gl_begin (drawable, context);
+ gdk_flush ();
+ if (gdk_error_trap_pop ())
+ result = false;
+
+ if (result) {
glEnable (GL_LIGHTING);
glEnable (GL_LIGHT0);
glEnable (GL_DEPTH_TEST);
glEnable (GL_CULL_FACE);
glEnable (GL_COLOR_MATERIAL);