From http://www.jwz.org/xscreensaver/xscreensaver-5.20.tar.gz
[xscreensaver] / hacks / glx / polyhedra-gl.c
index 48e7ec53a58bf2a6d481469fb201524d4513c403..f97d2bf7a041bd9121acc99e22aeb09e14c4caa1 100644 (file)
@@ -1,4 +1,4 @@
-/* polyhedra, Copyright (c) 2004-2011 Jamie Zawinski <jwz@jwz.org>
+/* polyhedra, Copyright (c) 2004-2012 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
@@ -537,6 +537,11 @@ init_polyhedra (ModeInfo *mi)
   polyhedra_configuration *bp;
   int wire = MI_IS_WIREFRAME(mi);
 
+# ifdef HAVE_JWZGLES /* #### glPolygonMode other than GL_FILL unimplemented */
+  MI_IS_WIREFRAME(mi) = 0;
+  wire = 0;
+# endif
+
   if (!bps) {
     bps = (polyhedra_configuration *)
       calloc (MI_NUM_SCREENS(mi), sizeof (polyhedra_configuration));