Fixed memory allocation size.
authorMike Gorchak <lestat@i.com.ua>
Tue, 13 Oct 2009 20:16:23 +0000
changeset 33985ecc05616f39
parent 3397 c64ae6ee6a6d
child 3399 f96615051c8c
Fixed memory allocation size.
test/testgles.c
     1.1 --- a/test/testgles.c	Tue Oct 13 18:14:22 2009 +0000
     1.2 +++ b/test/testgles.c	Tue Oct 13 20:16:23 2009 +0000
     1.3 @@ -147,7 +147,7 @@
     1.4          quit(2);
     1.5      }
     1.6  
     1.7 -    context = SDL_calloc(state->num_windows, sizeof(SDL_GLContext));
     1.8 +    context = SDL_calloc(state->num_windows, sizeof(context));
     1.9      if (context == NULL) {
    1.10          fprintf(stderr, "Out of memory!\n");
    1.11          quit(2);