Blob Blame History Raw
--- xscreensaver-5.19/hacks/glx/lament.c.wire	2012-06-25 06:12:16.000000000 +0900
+++ xscreensaver-5.19/hacks/glx/lament.c	2012-08-23 09:27:26.925105245 +0900
@@ -1378,7 +1378,12 @@
 scale_for_window(ModeInfo *mi)
 {
   lament_configuration *lc = &lcs[MI_SCREEN(mi)];
-  int target_size = lc->texture->width * 1.4;
+
+  /* With -wireframe option, lc->texture is not created
+     Also -no-texture option does not create this
+  */
+  Bool wire = MI_IS_WIREFRAME(mi);
+  int target_size = lc->texture ? lc->texture->width * 1.4 : 340;
   int win_size = (MI_WIDTH(mi) > MI_HEIGHT(mi) ? MI_HEIGHT(mi) : MI_WIDTH(mi));
 
   /* This scale makes the box take up most of the window */