Some other comments about your code in general:
init() is a fairly common name as well, you may want to change that just to be safe. ;)
Standard name for main()'s parameters are argc, and argv....
Type: Posts; User: dwks
Some other comments about your code in general:
init() is a fairly common name as well, you may want to change that just to be safe. ;)
Standard name for main()'s parameters are argc, and argv....
I used to be an expert in SDL 1.2 but I haven't touched SDL 2 yet, so I thought I'd take a look at your code. It was very puzzling, I have to say. You're getting SIGBUS or SIGSEGV whenever SDL_Quit()...