Fixed compiling of three test programs with C++.

This commit is contained in:
Philipp Wiesemann
2016-10-09 20:31:32 +02:00
parent f9b15a94ec
commit 367a6a3ddf
3 changed files with 6 additions and 6 deletions

View File

@@ -173,7 +173,7 @@ main(int argc, char *argv[])
quit(2);
}
context = SDL_calloc(state->num_windows, sizeof(context));
context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
if (context == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
quit(2);