comparison test/testgles.c @ 3398:5ecc05616f39

Fixed memory allocation size.
author Mike Gorchak <lestat@i.com.ua>
date Tue, 13 Oct 2009 20:16:23 +0000
parents c64ae6ee6a6d
children 55541ddf13e3
comparison
equal deleted inserted replaced
3397:c64ae6ee6a6d 3398:5ecc05616f39
145 } 145 }
146 if (!CommonInit(state)) { 146 if (!CommonInit(state)) {
147 quit(2); 147 quit(2);
148 } 148 }
149 149
150 context = SDL_calloc(state->num_windows, sizeof(SDL_GLContext)); 150 context = SDL_calloc(state->num_windows, sizeof(context));
151 if (context == NULL) { 151 if (context == NULL) {
152 fprintf(stderr, "Out of memory!\n"); 152 fprintf(stderr, "Out of memory!\n");
153 quit(2); 153 quit(2);
154 } 154 }
155 155