diff --git a/test/testgles.c b/test/testgles.c index c01b5c204..5c4321284 100644 --- a/test/testgles.c +++ b/test/testgles.c @@ -147,7 +147,7 @@ main(int argc, char *argv[]) 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);