As I mentioned in this bug, something broke when I updated to 2.0.6713:
http://bugzilla.libsdl.org/show_bug.cgi?id=1658
I checked and apparently this code causes it to fail (the last call to
abort_program is what triggers the error message):
// Create window
window = SDL_CreateWindow(“Sol”, SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED, 768, 480, 0);
if (window == NULL)
abort_program(ERR_INITVIDEO, NULL);
// Create rendering context
renderer = SDL_CreateRenderer(window, -1,
SDL_RENDERER_SOFTWARE));
if (renderer == NULL)
abort_program(ERR_INITVIDEO, NULL);
If I replace SDL_RENDERER_SOFTWARE with 0, it works just fine, so it
seems the software renderer broke at some point. Before I fill a bug
report, is this indeed a problem or did the software renderer get
dropped at some point? (I added support for it because on some systems
OpenGL conflicts with accessibility tools, and my game is far from
being GPU heavy, it’s only used to stretch a texture)
Also in case you wonder why I was testing with the software
renderer… turns out I had swapped the flags so it was running the
software renderer when it wanted a hardware one and vice versa.
Whoops. Now I have to profile all over again.