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
/
blinkbox.c
diff --git
a/hacks/glx/blinkbox.c
b/hacks/glx/blinkbox.c
index ba4693815f6d474d64d0eb54881267fae92eb4ac..f90f7feff222822440d491d73e78644cd911eb1e 100644
(file)
--- a/
hacks/glx/blinkbox.c
+++ b/
hacks/glx/blinkbox.c
@@
-296,11
+296,7
@@
init_ball (ModeInfo *mi)
int wire = MI_IS_WIREFRAME(mi);
blinkboxstruct *bp;
int wire = MI_IS_WIREFRAME(mi);
blinkboxstruct *bp;
- if(blinkbox == NULL) {
- if((blinkbox = (blinkboxstruct *) calloc(MI_NUM_SCREENS(mi),
- sizeof (blinkboxstruct))) == NULL)
- return;
- }
+ MI_INIT (mi, blinkbox, NULL);
bp = &blinkbox[MI_SCREEN(mi)];
if ((bp->glx_context = init_GL(mi)) != NULL) {
bp = &blinkbox[MI_SCREEN(mi)];
if ((bp->glx_context = init_GL(mi)) != NULL) {