changeset 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 f96615051c8c
files test/testgles.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/testgles.c	Tue Oct 13 18:14:22 2009 +0000
+++ b/test/testgles.c	Tue Oct 13 20:16:23 2009 +0000
@@ -147,7 +147,7 @@
         quit(2);
     }
 
-    context = SDL_calloc(state->num_windows, sizeof(SDL_GLContext));
+    context = SDL_calloc(state->num_windows, sizeof(context));
     if (context == NULL) {
         fprintf(stderr, "Out of memory!\n");
         quit(2);