X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion.c;h=c61f27a3ed9d1093ebb03fc05ed75f665bb1b532;hp=08786b29be7195f45c017eaa1ed7d0dbcfcf3459;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/extrusion.c b/hacks/glx/extrusion.c index 08786b29..c61f27a3 100644 --- a/hacks/glx/extrusion.c +++ b/hacks/glx/extrusion.c @@ -116,7 +116,7 @@ ENTRYPOINT ModeSpecOpt extrusion_opts = {countof(opts), opts, countof(vars), var #ifdef USE_MODULES ModStruct extrusion_description = -{"extrusion", "init_extrusion", "draw_extrusion", "release_extrusion", +{"extrusion", "init_extrusion", "draw_extrusion", NULL, "draw_extrusion", "init_extrusion", NULL, &extrusion_opts, 1000, 1, 2, 1, 4, 1.0, "", "OpenGL extrusion", 0, NULL}; @@ -530,11 +530,7 @@ init_extrusion (ModeInfo * mi) if (MI_IS_WIREFRAME(mi)) do_light = 0; - if (Extrusion == NULL) { - if ((Extrusion = (extrusionstruct *) - calloc(MI_NUM_SCREENS(mi), sizeof (extrusionstruct))) == NULL) - return; - } + MI_INIT(mi, Extrusion, NULL); gp = &Extrusion[screen]; gp->window = MI_WINDOW(mi);