From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / noof.c
index 6ec5793e7f50d358976fd69acc9e45da94e95a3a..ee2810b36b7b214e51027f7f8454e49af8af5012 100644 (file)
@@ -16,6 +16,7 @@
 #define DEFAULTS       "*delay:        10000       \n" \
                        "*showFPS:      False       \n" \
                        "*fpsSolid:     True        \n" \
+                       "*doubleBuffer: False       \n" \
 
 # define refresh_noof 0
 # define release_noof 0
@@ -444,6 +445,10 @@ init_noof (ModeInfo *mi)
   int i;
   noof_configuration *bp;
 
+#ifdef HAVE_JWZGLES
+  dbuf_p = 1;
+#endif
+
   if (!bps) {
     bps = (noof_configuration *)
       calloc (MI_NUM_SCREENS(mi), sizeof (noof_configuration));
@@ -458,7 +463,6 @@ init_noof (ModeInfo *mi)
   bp->glx_context = init_GL(mi);
 
   glDrawBuffer(dbuf_p ? GL_BACK : GL_FRONT);
-  glClearColor(0.0, 0.0, 0.0, 1.0);
   glEnable(GL_LINE_SMOOTH);
   glShadeModel(GL_FLAT);
   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);