projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver]
/
hacks
/
glx
/
extrusion.c
diff --git
a/hacks/glx/extrusion.c
b/hacks/glx/extrusion.c
index 08786b29be7195f45c017eaa1ed7d0dbcfcf3459..c61f27a3ed9d1093ebb03fc05ed75f665bb1b532 100644
(file)
--- 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 =
#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};
"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 (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);
gp = &Extrusion[screen];
gp->window = MI_WINDOW(mi);