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
/
carousel.c
diff --git
a/hacks/glx/carousel.c
b/hacks/glx/carousel.c
index f81bcf540bb7ca56aaefa0381f38091a418910b8..7f7a8da628a267761048e3f9aaecf21a2ea4c06e 100644
(file)
--- a/
hacks/glx/carousel.c
+++ b/
hacks/glx/carousel.c
@@
-563,11
+563,7
@@
init_carousel (ModeInfo *mi)
carousel_state *ss;
int wire = MI_IS_WIREFRAME(mi);
carousel_state *ss;
int wire = MI_IS_WIREFRAME(mi);
- if (sss == NULL) {
- if ((sss = (carousel_state *)
- calloc (MI_NUM_SCREENS(mi), sizeof(carousel_state))) == NULL)
- return;
- }
+ MI_INIT (mi, sss, NULL);
ss = &sss[screen];
if ((ss->glx_context = init_GL(mi)) != NULL) {
ss = &sss[screen];
if ((ss->glx_context = init_GL(mi)) != NULL) {