X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fjigsaw.c;h=5a415b1756b32d9dff81113a363e3cb8f0ea9f38;hp=541239308576d7b1daa96e459f16c36667b2d49f;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/jigsaw.c b/hacks/glx/jigsaw.c index 54123930..5a415b17 100644 --- a/hacks/glx/jigsaw.c +++ b/hacks/glx/jigsaw.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997-2015 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-2017 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -1378,14 +1378,7 @@ init_jigsaw (ModeInfo *mi) jigsaw_configuration *jc; int wire = MI_IS_WIREFRAME(mi); - if (!sps) { - sps = (jigsaw_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (jigsaw_configuration)); - if (!sps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, sps, NULL); jc = &sps[MI_SCREEN(mi)]; jc->glx_context = init_GL(mi);