OpenGL or SDL segfaults when it reaches the very first statement in the class. I have no idea what is causing it.
class RenderEngine { GLuint vertexArrayId;
I forgot to setup an OpenGL context. All fixed now.