mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 11:36:32 -05:00
Fixed memory allocation size.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user