How to diagnose SDL2 SDL_RenderPresent crash on Mac?
Using SDL2 on a Macintosh, I’m having problems where SDL_RenderPresent crashes way down in the Cocoa code with the message, “failed assertion: drawable must not be nil.” The code is too complicated to present here, and simple examples don’t crash. So I’m really asking for a strategy: how might I hunt this down?