/* xlock-gl.c --- xscreensaver compatibility layer for xlockmore GL modules.
- * xscreensaver, Copyright (c) 1997-2002, 2006 Jamie Zawinski <jwz@jwz.org>
+ * xscreensaver, Copyright (c) 1997-2008 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#include <stdio.h>
#include "xlockmoreI.h"
+#include "glxfonts.h"
#include <GL/gl.h>
#include <GL/glu.h>
glDrawBuffer (GL_FRONT);
}
+ /* Sometimes glDrawBuffer() throws "invalid op". Dunno why. Ignore. */
+ clear_gl_error ();
/* GLXContext is already a pointer type.
Why this function returns a pointer to a pointer, I have no idea...