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
/
glsnake.c
diff --git
a/hacks/glx/glsnake.c
b/hacks/glx/glsnake.c
index 2616ad273be4ad16d73e885739f19aa33f687ea2..1d8ef965a10a73c398d5125e300d8ebd0d5cec13 100644
(file)
--- a/
hacks/glx/glsnake.c
+++ b/
hacks/glx/glsnake.c
@@
-1461,13
+1461,7
@@
ModeInfo * mi
struct glsnake_cfg * bp;
/* set up the conf struct and glx contexts */
struct glsnake_cfg * bp;
/* set up the conf struct and glx contexts */
- if (!glc) {
- glc = (struct glsnake_cfg *) calloc(MI_NUM_SCREENS(mi), sizeof(struct glsnake_cfg));
- if (!glc) {
- fprintf(stderr, "%s: out of memory\n", progname);
- exit(1);
- }
- }
+ MI_INIT(mi, glc, NULL);
bp = &glc[MI_SCREEN(mi)];
if ((bp->glx_context = init_GL(mi)) != NULL) {
bp = &glc[MI_SCREEN(mi)];
if ((bp->glx_context = init_GL(mi)) != NULL) {