From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / glx / quasicrystal.c
index d2d3f5c16b0b3c73c5787a9f9244bf2cb14ca375..2e761e358e2cc4f4663c9fd7c5b6c0da685bbed6 100644 (file)
@@ -22,6 +22,7 @@
                        "*contrast:     30          \n" \
                        "*showFPS:      False       \n" \
                        "*wireframe:    False       \n" \
+                       "*suppressRotationAnimation: True\n" \
 
 # define refresh_quasicrystal 0
 # define release_quasicrystal 0
@@ -191,14 +192,7 @@ init_quasicrystal (ModeInfo *mi)
   int tex_width;
   int i;
 
-  if (!bps) {
-    bps = (quasicrystal_configuration *)
-      calloc (MI_NUM_SCREENS(mi), sizeof (quasicrystal_configuration));
-    if (!bps) {
-      fprintf(stderr, "%s: out of memory\n", progname);
-      exit(1);
-    }
-  }
+  MI_INIT (mi, bps, NULL);
 
   bp = &bps[MI_SCREEN(mi)];
 
@@ -328,7 +322,9 @@ draw_quasicrystal (ModeInfo *mi)
   if (!wire)
     {
       glEnable (GL_TEXTURE_1D);
-      glEnable (GL_TEXTURE_2D);  /* jwzgles needs this too, bleh. */
+# ifdef HAVE_JWZGLES
+      glEnable (GL_TEXTURE_2D);  /* jwzgles needs this, bleh. */
+# endif
     }
 
   glEnable (GL_BLEND);